Not loading when jQuery loaded in footer
-
For performance reasons it is advised to defer loading jscripts to the footer of the page (if possible). However, when jQuery is loaded in the footer of the page, Easing Slider doesn’t work anymore because its scripts are loaded in the header and require jQuery to be loaded.
This can easily be fixed (on my site at least https://www.trouwautopurmerend.nl) in easingsliderlite.php by changing lines 933 and 934 by adding true as last parameter to wp_register_script. This will defer the loading of the scripts to the footer.
Suggestions:
– If possible, defer loading of the scripts to the footer by default
– If not possible to load the scripts at the footer, at least update the FAQ topic “My slider continually loads. What’s wrong?” and explain that jquery must currently be loading in the header.
- The topic ‘Not loading when jQuery loaded in footer’ is closed to new replies.