Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
beatricelucaci opened this issue Sep 9, 2021 · 0 comments
Open

Comments

@beatricelucaci
Copy link

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant