[Resolved] jquery still there?

Home Forums Support [Resolved] jquery still there?

Home Forums Support jquery still there?

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

    Am I wrong? I thought jquery was outta here in GP 2.0, right?

    I’m getting warnings when speed-testing that jquery is there before pageload… so I checked. And it is. It is in the WP Includes > JS folder, and it is getting pulled into my pages.

    A plugin?

    #444518
    Tom
    Lead Developer
    Lead Developer

    jQuery will still load if one of the elements on your page needs it.

    For example, the sticky navigation in GPP requires jQuery.

    #444827
    John

    Ah. So jquery isn’t gone. OK. I got that wrong.

    However, is there a way for GPP to load it just before </body> rather than up at the top? Testers are coughing over that.

    #444907
    Tom
    Lead Developer
    Lead Developer
    #445054
    John

    That’s the option? I’m of the understanding that plugin avoidance is something of a virtue.

    I thought the conventional wisdom has been to load .js at the bottom of the page as a normal operating procedure. Why has this one loaded up high?

    #445270
    Tom
    Lead Developer
    Lead Developer

    jQuery typically loads in the <head> section of websites to avoid javascript errors. That’s where WordPress loads it by default.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.