Page Load Time Issues with MeetingsSOLVE
Nov 20, 2020 9:22 AM
We are having some issues with page load time. Can we turn off some settings/tracking to help speed up our page load? We need to optimize for page loading speed when our HubSpot services are being used?
We have noticed that the demo button we use on our site using this JS code ….
<div class="meetings-iframe-container" data-src="https://app.hubspot.com/meetings/starchaptermeetings/starchapterdemo?embed=true"></div>
<script async="" src="https://fullstory.com/s/fs.js" crossorigin="anonymous"></script>
…. is causing a large change in our site performance. We would like to know if you have a recommended method whereby, we can load this script after the page loads (deferred loading) so that it will not impact the user experience? We have considered using a load event and then loading your script, but we don't want to break the script based on how it works on your end and would like your guidance.
Most of what I got came from the Google Dev tools "lighthouse" (in the inspector) and tools.pingdom.com. However, those tools will not help you all. What we did with those tools is compare our site load speed with and without hubspot on our site and That was the big difference. Page size, load time, additional references, and time to interact all increased significantly when hubspot code was on our site.
The question we really need answered is "can we load your stuff after the page loads or will that break your stuff".”
Solved! Go to Solution.
Nov 23, 2020 4:01 PM
You can defer the scripts using the "defer" property:
But this won't speed up the page, it will just prevent that script's loading from blocking the rendering of the page.
An important question to ask is why are you trying to speed up the page load?
Is it because Google says it's slow?
Or is it because the scripts are blocking the rendering of the page, aka making the pages unusable on first paint?
This comes up quite often here on the forum. Poke around a little and see what others have found: