Dotvvm is not defined

We have a javascript script code that initialize dotvvm events
image

But we are encountering issue that dotvvm is not defined
image

I’ve tried window.onload but it seems not working as it’s not entering in the functiion

try

$(document).ready(function() {
   // init dotvvm event here
});

if you’re using jQuery

or

document.addEventListener('DOMContentLoaded', function() {
   // init dotvvm event here
});

usually works for me

1 Like