Javascript faster than jQuery can get their
Published by Joe Lovick on January 27th, 2015
If you don't have much control over the loading of content of page, sometimes you come to rely on libraries being present , jQuery is a classic example for me, I just assume its their.
But with the good practice of putting ones script includes at the base of a page, on some content management systems it impossible to be sure that jQuery will be available when your script is run.
So in the CMS that i work within, the jqueries of this load are loaded after the footer...

Where does my code get included, yep in that highlighted content area.
One solution is to just wait for ready() to call and chain our code in their,
but this does not allow you to debug your code within your browser, as it loads it inline.
Moving the loading to function "loadscript" in this example, and then appending it to the document at the end, forces a system in which you can debug your included scripts and also wait until required dependencies are loaded.
Possibly its worth adjusting the timer for a quicker trigger when jquery is present, but haven't noticed any issues setting it at a relaxed 150milliseconds.