-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
Closed
Labels
Description
The javascripts plugins such as affix and scrollspy use $(window).on('load', function () for initialisation. When defer loading (after window.onload) jquery and / or the plugins, the onload event has already been fired before the code loads.
For this reason i wonder if the plugin can be initialised with something like this:
if (document.readyState !== "loading") init();
else $(window).on('load',init );Reactions are currently unavailable