We have some restrictions on the CMS we are using and the jQuery code is included in the footer of the page.
We use the code below to determine if jquery is available, however as jQuery is loaded after this script is included this always returns false resulting in our code not being executed.
if (typeof jQuery != 'undefined') {
Is it possible to force this to wait until full page load without using:
jQuery(document).ready(function($) {
Note: We are unable to move the jQuery code higher in the source and even implementing something like the below is probably not possible given the way the CMS is setup. (Very limited access to template files).
Load jQuery after DOM, how can I make $.ready() available to my page before jQuery is loaded?