CMS Development

fcha
Participant

HubSpot Script Loader

We are using the HB Script Loader in our templates.  Our regional office in Beijing complained of slow response times from our website so when I requested a Network view of the request I noticed 2 culprits taking over a minute to load.

 

js.hsleadflows.net/leadflows.js

js.usemessages.com/conversations-embed.js

 

I was able to clone the HB script loader, remove the calls for these 2 files and the site performs normal.

 

My question - what functionality will I be lose due to my change?

 

I suspect chatbot wont' work, but that's a non issue as we don't use it for that region.  But leadflows are a bit more concerning and I found no documentation on the impact removing that file will have.

 

Your feedback is welcomed!

 

9 Replies 9
simonp
Member

HubSpot Script Loader

Just discovered this topic - 500kb is really steep for a pop up

0 Upvotes
CHorsefield
Member

HubSpot Script Loader

Has there been any fix for this to exclude hsleadflows.js and still use the chat service? If not we're going to cancel our Hubspot and find another provider.

0 Upvotes
WŻołnowski
Participant

HubSpot Script Loader

That should be considered as a major bug in the HubSpot. 

Because of that scripts, HubSpot websites are not usable for its users because of the slow loading time. Not even mentioning that search engines will penalize such slow pages, so SEO suffers.

 

Not using HubSpot CTA's, chat and forms is an option, but why should we pay for HubSpot if we can not use its basic features?

JSexauer
Participant

HubSpot Script Loader

As far as I understood from Sjardo's post, the solution is to not have any Pop Up's or comment/ Chat functions anywhere on your site. Then this won't load. Whether that's worth it for you is something you'll have to decide.

0 Upvotes
nikt
Participant

HubSpot Script Loader

Still a thing for us. 0.5Mb to show one popup doesnt seem legit

 

Sjardo
Top Contributor | Elite Partner
Top Contributor | Elite Partner

HubSpot Script Loader

Hi!

 

Today, I was digging into this issue and would like to give some extra information on my findings. It might help someone, someday!

 

  • If you use any chat options once, somewhere, it will load conversations.js on any HubSpot page.
  • If you use a single pop-upform / lead flow once, somewhere, it will load leadflows.js on any HubSpot page.

 

To clarify once more. If you use one or both of those features once, it loads the correlated script on every page on your site.

 

So keep that in mind 😉

Best,

Sjardo

Willson
HubSpot Employee
HubSpot Employee

HubSpot Script Loader

Hey @fcha 

 

The site itself will perform normally without the addition of these scripts but as they have been removed, you will lose the following functionality:

In order to restore functionality for these features, the scripts themselves will need to be restored in order for the features to correctly load on your site. 

 

I hope this helps!

Product Manager @ HubSpot
BradSmith
Member

HubSpot Script Loader

Leadflows is being loaded on all of our sites despite the fact that we don't use leadflows. This adds .5M to the total JS downloaded for the site. Is there a way to tell HS to _not_ do this other than creating our own customized version like the OP did?

Pilchard
Participant

HubSpot Script Loader

⬆️ I would also like to know this.

0 Upvotes