Hi, we have been running site speed tests and I am struggling with how to improve it please see the points below.
1. Third party scripts - currently we have a lot of scripts loading on the page the biggest contributor is hubspot - do we need all of these for the site to work correctly?
Why are they not complied into one file so one request?
2. Cache files - Hubspot does not have a way for users to add files to the cache policy - from the report, it says we should add a lot of files - what would you recommend to combat this?
3. Deferring scripts - is there a way to defer the loading of JS files?
This is a great article with some best practices. Also check this amazing post that has a lot of great improvements. Make sure to check require_js and use the new drag and drop coded templates mentioned in the first article.
Learn more about HubSpot by following me on LinkedIn or YouTube
✅ Did my answer solve your issue? Help the community by marking it as the solution.
I think it's important to note that your lighthouse numbers will never be perfect. As long as you're loading scripts from third-party sites, your site will take long to load. If you're concerned about it affecting the user experience or Google rankings, I wouldn't worry too much about it. You should only be concerned if the website is visibly slow or if it begins to impact your dwell time and bounce rate.
In any case, you should make note of all the scripts that are currently running as ask yourself if you absolutely need them. By the looks of it, it seems that Facebook is taking up the most space.
This is a great article with some best practices. Also check this amazing post that has a lot of great improvements. Make sure to check require_js and use the new drag and drop coded templates mentioned in the first article.
Learn more about HubSpot by following me on LinkedIn or YouTube
✅ Did my answer solve your issue? Help the community by marking it as the solution.
This post you have linked covers my problems above so I will follow that although there is no direct way to solve these issues rather work arounds or hacks. Would be good if Hubspot actioned some of these issues.