WPChill / final-tiles-grid-gallery-lite

0 stars 3 forks source link

Gallery not loading on front end due to jQuery expectation #35

Open beatricelucaci opened 3 years ago

beatricelucaci commented 3 years ago

The code generated to run the plugin client side calls immediately for jQuery to be available. Some optimisations put the jQuery script call in the footer meaning the Gallery script is calling before the page has loaded / knows of jQuery and gets this error in the console:

(index):291 Uncaught ReferenceError: jQuery is not defined

I can see the code will work by copying it from the page source then running it manually in the console on the page after load. this works fin as once the page is loaded jQuery is available. Obviously not practical though.

https://wordpress.org/support/topic/gallery-not-loading-on-front-end-due-to-jquery-expectation/