Site speed - caching, hubspot js

SOLVE
MGilbert
Contributor | Platinum Partner

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?

 

4. Initial server response time is sometimes slow 

 

The website in question is https://www.finally.agency/ 

I have done this below to help site speed,

- looked at images and scaled/reduced image size 

- Added lazy load to as much as possible 

- Hubspot is compressing files anyway 

- Removed anything that's not needed 

 

If anyone has any advice on the above id be very greatful

0 Upvotes
1 Accepted solution

Accepted Solutions
Teun
Solution
Guide | Diamond Partner

Hi @MGilbert ,

 

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.



Did my answer solve your issue? Help the community by marking it as the solution.

View solution in original post

4 Replies 4
Teun
Solution
Guide | Diamond Partner

Hi @MGilbert ,

 

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.



Did my answer solve your issue? Help the community by marking it as the solution.

View solution in original post

MGilbert
Contributor | Platinum Partner

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.

0 Upvotes
MGilbert
Contributor | Platinum Partner

Thank you for getting back to me

0 Upvotes
erod
Contributor

Hey @MGilbert

 

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.

 

Best, 

Edgar