Open full view…

Comments on How to Setup jQuery.ready Callbacks Before jQuery is Loaded

Wed, 18 Mar 2015 23:06:13 GMT

Wed, 18 Mar 2015 23:08:16 GMT

I wanted to try this solution to see if it would work when jQuery is loaded _after_ window.load. I had wanted to do that so that I could load _all_ of my JS and jQuery after window.load, but I have some document.ready stuff scattered about in places throughout my site. So I thought this might work, but it doesn't. It apparently requires that jQuery be loaded, rather than injected, before the end-of-body script of the solution. Conversely, I also tried to load the end-of-body part of this _after_ the jQuery is loaded (_after_ window.load). That also did not work. So, apparently there is no way to leave document.ready stuff scattered around the site, while also loading jQuery completely _after_ window.load?