Why the executions of window.onload=function(){alert(1);} in form_formid.js are not working consiste

wangchen

New Member
Why the executions of
window.onload=function(){
alert(1);
}
in form_formid.js are not working consistently? Sometimes, it doesn?t run at all.
 
As per my response to your other two similar posts, it's best to wrap anything you want to do at load time in a ...

Code:
requirejs('[fab/fabrik]', function () {
   // your code
});

This leverages our use of the RequireJS dependency manager to ensure that your code doesn't run before Fabrik is loaded and ready.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top