• Resolved Pierre from DesignBots

    (@mecanographik)


    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://www.ads-software.com/plugins/geo-my-wp/

Viewing 1 replies (of 1 total)
  • Plugin Author Eyal Fitoussi

    (@ninjew)

    @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.