HubSpot Ideas

WMM_Inbound

Disable scripts that are not needed

Hi,

 

on a HubSpot Website there seems to be a lot of JS files /scripts included and loaded upon page load. For a lot of those it is unclear for me what they are even doing and somtimes not possible to determine if i even need them on my website.

 

It would be great in the interest of performance to be able to choose which scripts are being included and which are not ( maybe like the way we can include/exclude the loading of JQuery?).

Possible Solution (based on Subscription):
When a customer has purchased a certain Hub, their website could load the scripts associated with the services of this Hub.  

However, if you have not subscribed to this hub, the scripts of this hub should not be included, since its services cannot be used anyway. The scripts would be loaded unnecessarily.

1 Reply
matt_scott
Top Contributor | Platinum Partner

These scripts should also have a longer cache time when they are used

But to be fair I think these scripts are
Analytics
Cookie Banner
CTAs
Script to load the above scripts

Screenshot 2023-11-21 at 10.41.31.png