• Resolved Leah

    (@gezan)


    Hello everyone,

    Working on a theme where I faught long and hard to get all plugins to work when the included jQuery is loaded in footer. Looking for ways to accomplish this with Master Slider. I’m getting

    Uncaught ReferenceError: jQuery is not defined

    which is no surprise.

    Can I somehow move the js, which is inserted in to the slider page, to a separate file which I then would load after jQuery?

    https://wordpress.org/plugins/master-slider/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Leah

    (@gezan)

    Perhaps you could insert the shortcode with ajax?

    Thread Starter Leah

    (@gezan)

    I Really like all JS in footer. Makes a difference in loading experience.
    Any advice on how to accomplish this with Master Slider?

    Please Averta?

    Thread Starter Leah

    (@gezan)

    Anything, anyone? Averta, plans for this?

    Plugin Author averta

    (@averta)

    Hi,
    sorry for the delay you can do that but please make sure the jQuery needs to load on footer as well.

    Regards

    Thread Starter Leah

    (@gezan)

    Oh, has something changed?
    I think I tested this quite thoroughly but will try again and report back.

    Thanks

    Thread Starter Leah

    (@gezan)

    Can’t get it to work unfortunately. Using WP 4.1 with no other plugins active and a child theme of twenty fifteen.

    In functions.php I have

    wp_deregister_script('jquery-migrate');
    wp_deregister_script('jquery');
    wp_enqueue_script('jquery', '/wp-includes/js/jquery/jquery.js', FALSE, '1.11.0', TRUE);
    wp_enqueue_script('jquery-migrate', '/wp-includes/js/jquery/jquery-migrate.min.js', FALSE, '1.2.1', TRUE);

    What I get is

    Uncaught ReferenceError: jQuery is not defined
    in (index):320

    Plugin Author averta

    (@averta)

    By loading jQuery in footer you will break lot of plugins in WordPress websites, I highly recommend you not to load jQuery in footer.
    http://stackoverflow.com/questions/15049416/how-to-include-jquery-in-the-footer-when-using-document-ready-in-header

    Regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Get sliders to work with jquery in footer’ is closed to new replies.