[Support request] Does generatepress add Jquery on head section?

Home Forums Support Does generatepress add Jquery on head section?

This topic contains 5 replies, has 3 voices, and was last updated by  Leo 2 months, 1 week ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #493056

    Francesco

    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

    GeneratePress 2.0.2
    GP Premium 1.5.6
    #493152

    Leo Customer Support

    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.

    #493239

    Francesco

    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.

    #493266

    Leo Customer Support

    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.

    #807569

    drew

    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.

    #807579

    Leo Customer Support

    Any chance you can open a new topic for your question?

    Thanks!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.