Disabling jQuery

We disabled jQuery in Hubspot settings --> Pages --> jQuery (screenshot) but are still seeing jQuery files on our website, for example <website>.com/hs/hsstatic/jquery-libs/static-1.1/jquery/jquery-1.7.1.js

How do we remove these? Thank you!

@SArce it’s likely being loaded by the theme you used to build your website.

HubSpot offered jQuery in the settings to make it easy to append the library to your website, but when they announced it was going to be sunset (and even before that really) themes began including the latest version directly in their theme files.

If you built your website with a custom theme, you can have your web developer refactor the entire theme to replace the dependency on jQuery and replace it with vanilla JS (depending on how much jQuery is used and if there aren’t macros, this is likely a huge undertaking.).

If you’re using a marketplace theme, the developer of the theme would have to push an update out that removed the dependency (highly unlikely if they haven’t already, but you could ask their support if they have plans to do that).

If you’re using a child theme based on a marketplace theme, you could essentially turn it into a clone and do the same as if it were a custom theme, but you’d lose access to future updates because you’ll have disconnected the majority of the files from the marketplace theme.

If you just go into your theme and remove jQuery, it’s likely things will stop working (e.g. an accordion menu won’t open and close anymore).