Issues with window.onload JS
-
Hi,
I’ve just started using the Instagram feed for a project and noticed that a dropdown menu in my theme stopped working when the plugin was active.
I’ve done a little digging and I’ve found that both things are trying to set the window.onload Javascript function.
in “wdi_frontend.js” on line 142 it overwrites the window.onload function with your own code. This means anything else that relies on using window.onload won’t work.
A better way to do this is to use window.addEventListener or if you want to use window.onload directly save the old window.onload script and chain it.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Issues with window.onload JS’ is closed to new replies.