HubSpot: impact on page speed
Category: Marketing automation
The HubSpot tracking code loads analytics, forms, pop-ups and chat depending on what is enabled in the portal. Features switched on once and forgotten keep loading on every page.
On 1.8 % of the 5509 homepages measured, HubSpot is among the five heaviest third parties. Where it is, it takes a median of 99 ms of main-thread time; on the heaviest quarter of those sites it takes 152 ms or more.
1.8 %
of homepages: among the five heaviest third parties
99 ms
median main-thread time
152 ms
main-thread time on the heaviest quarter (p75)
135 KB
median transfer size
Distribution across homepages
Percentiles across 98 homepages with HubSpot.
| Percentile | Main-thread time | Transfer size |
|---|---|---|
| p25 |
54 ms
|
100 KB |
| Median |
99 ms
|
135 KB |
| p75 |
152 ms
|
203 KB |
| p90 |
324 ms
|
310 KB |
In context
By median main-thread time, HubSpot ranks 35th of 72 third parties in the benchmark, lighter than Optanon and heavier than Usercentrics CMP.
On 15 % of the homepages where it appears, HubSpot alone uses 250 milliseconds of main-thread time or more, the mark from which Lighthouse flags third-party code.
Homepages with HubSpot weigh 4.0 MB at the median (JavaScript: 1.8 MB), homepages without it 4.3 MB (JavaScript: 1.5 MB).
Often loaded together with
Share of homepages with HubSpot where the other tool is also among the five heaviest third parties.
- Google Tag Manager 87 %
- Facebook 47 %
- Hotjar 13 %
How to spot HubSpot on your page
The loader script comes from js.hs-scripts.com and, depending on the portal settings, pulls further scripts from js.hs-analytics.net, js.hs-banner.com, js.hsadspixel.net and js.hubspot.com, with form and tracking requests to hsforms.com and track.hubspot.com. Because these modules are switched on in the HubSpot portal rather than in the site's code, developers often do not know they are there. A review of the portal settings is therefore the first step before any change to the website.
How to reduce the impact of HubSpot
- Switch off unused features such as chat flows and pop-up forms in the HubSpot portal.
- Embed forms only on pages that need them and load them when they scroll into view.
- Load the tracking code only after consent.
Frequently asked questions
How can I load HubSpot with less impact?
Switch off unused features such as chat flows and pop-up forms in the HubSpot portal. Embed forms only on pages that need them and load them when they scroll into view.
Does HubSpot affect Core Web Vitals?
HubSpot usually arrives as a bundle: tracking code, forms, chat and pop-up tools, each with its own script. Together they weigh on INP during page load. Embedded forms render only after their script has loaded and shift the layout if no space is reserved, and lead capture pop-ups that slide in can do the same.
Method and sample: Third-Party Benchmark.