Archived topic
Does generatepress add Jquery on head section?
5 replies · Started by Francesco on February 10, 2018
I'd like to know if generatepress add jquery to head section.
If so, why don't you add it on footer?
I think it's better for performance.
Thanks
Hi there,
Just asked Tom about this. He said that WordPress loads it in the head to prevent plugin conflicts:
https://generatepress.com/forums/topic/jquery-still-there/#post-445270
GP will only load jQuery if the slide-out navigation (for now), sticky navigation or masonry are enabled.
Thanks for the reply.
I got same conclusion after I made some tests. I disable the slide out menu and jquery is correctly loading on footer. I disable the slide out menu for now.
If you disable the add-ons that are not using jQuery then it shouldn't load at all. Unless some other plugins are loading it.
Leo, this is great timing as we're working on something with this very issue. To that end, is it possible to disable the slideout and sticky nan on just a single page.
Reason: we need to have a page where jquery does not load as it is being used as a source for a template used by a third party ticketing provider.
Any chance you can open a new topic for your question?
Thanks!