Title: ReferenceError: jQuery is not defined &#8211; inline js scripts issue
Last modified: August 30, 2016

---

# ReferenceError: jQuery is not defined – inline js scripts issue

 *  Resolved [Pierre from DesignBots](https://wordpress.org/support/users/mecanographik/)
 * (@mecanographik)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/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 defined
 * The 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!
 * [https://wordpress.org/plugins/geo-my-wp/](https://wordpress.org/plugins/geo-my-wp/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Eyal Fitoussi](https://wordpress.org/support/users/ninjew/)
 * (@ninjew)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/referenceerror-jquery-is-not-defined-inline-js-scripts-issue/#post-6245309)
 * [@mecanographik](https://wordpress.org/support/users/mecanographik/), thank you
   for the feedback and detailed explanation.
    I have been working on removing the
   different inline jQuery scripts and place them in proper Javascript files. I 
   am going to look into the per_page script as well and will try to provide a fix
   to the final release of GEO my WP 2.6.1.

Viewing 1 replies (of 1 total)

The topic ‘ReferenceError: jQuery is not defined – inline js scripts issue’ is closed
to new replies.

 * ![](https://ps.w.org/geo-my-wp/assets/icon-256x256.gif?rev=2803407)
 * [GEO my WP](https://wordpress.org/plugins/geo-my-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/geo-my-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/geo-my-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/geo-my-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geo-my-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geo-my-wp/reviews/)

## Tags

 * [geomywp](https://wordpress.org/support/topic-tag/geomywp/)
 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 1 reply
 * 2 participants
 * Last reply from: [Eyal Fitoussi](https://wordpress.org/support/users/ninjew/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/referenceerror-jquery-is-not-defined-inline-js-scripts-issue/#post-6245309)
 * Status: resolved