• Resolved jkeasley2

    (@jkeasley2)


    Could you use

    window.addEventListener("load", function () {
    	cookieNotice.init();
    }, false);

    rather than window.onload to initialise this plugin, as if anything at all is attached to the window.onload event then the last loaded code attached to the event will be the *only* code which is run, which will break things.

    the above syntax will be much safer

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Prevent Javascript issues by modifying the plugin init js’ is closed to new replies.