ReferenceError: jQuery is not defined – inline js scripts issue
-
Hi Eyal,
Thanks for your work, i’ve been watching your plugin since the early beta times, and the last Beta 3 looks great. Just one big issue :
The plugin inserts some inline jquery before my jquery is loaded.
My jQuery is loaded in the wp_footer which is a now a standard.
I’m using the awesome starter theme “Sage” available on roots.io
Sage loads the google CDN jQuery, this one:
//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js
now, when i load the “results page” using the GeoMyWP search widget, i get this message in the firefox console :
ReferenceError: jQuery is not definedThe issue is coming from your inline jQuery scripts
i’ve the same issue on the single post type using geomywp featured (maps, …)throw JavaScript inline at arbitrary places without deferring the execution is causing those issues. the code expects e.g. jQuery to be loaded before it really does, so it fails…
example:
jQuery(document).ready(function($) { $('.gmw-1-per-page').change(function() { etc... }); });
i don’t want to laod jQuery in my wp_header beacuse of your plugin, please help me to make your plugin working ok with jQuery, i want to buy your Premium add-on!
- The topic ‘ReferenceError: jQuery is not defined – inline js scripts issue’ is closed to new replies.