Update in 2020: jQuery can now be disabled on CMS Hub.
What is it?
Developers can now control where the CMS jQuery library loads from on their site. A new setting will let you decide whether the jQuery loads from the header or the footer of your page.
Why does it matter?
Many companies have used HubSpot’s default jQuery library to build interactive experiences into their CMS hosted pages. We’ve loved seeing your creativity, but there’s a problem. Loading jQuery from the header delays the load speed of your content --- especially on mobile devices. As Google begins to take page speed into account when determining where your content ranks in search, having a site with fast load times is more important than ever. With this change you’ll now be able to maintain the interactive elements on your website while determining where this jQuery loads from, giving you the ability to deliver your content faster.
How does it work?
Within page templates settings, you’ll now see the option to load Hubspot’s included jQuery library from your footer.
Checking this setting will have your sites jQuery load from the footer for whichever domain you have selected at the top of the settings page.
Note: Before changing this setting, you should verify that pages on your domain will support loading jQuery from the footer instead of the header. You can do this by appending ?hsMoveJQueryToFooter=True to the end of your page’s URL. This will let you preview how the page will look prior to making the switch.
Who is it available to?
This feature is now available to all Marketing Hub Basic, Professional, or Enterprise users.
What language is it available in?
All languages supported by HubSpot.