Archived topic
jquery still there?
5 replies · Started by John on December 7, 2017
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?
jQuery will still load if one of the elements on your page needs it.
For example, the sticky navigation in GPP requires jQuery.
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.
You could try a plugin like this: https://en-ca.wordpress.org/plugins/scripts-to-footerphp/
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?
jQuery typically loads in the <head> section of websites to avoid javascript errors. That's where WordPress loads it by default.