Hacker News new | ask | show | jobs
by baptistejamin 2112 days ago
Hello Sean!

You are totally right, in many cases splitting the chat in many sub-parts can improve loading time.

It is something we tried during our optimization batch.

We figured that it wasn’t improving so much the loading time in our case. Saving around 10KB.

In fact our JS size is 80KB and CSS 30KB. The rest are fonts.

We offer an option for our customers to delay the chat. It’s a built-in feature. Not enabled by default.

About landing pages, you are totally right. SVGs make a real difference.

2 comments

Per the article, your total size is something like 230kb, so more than half your size is in fonts? I'm sure I'm in the minority here in that I don't like loading external fonts, but couldn't system fonts be good enough, or using the default of the site you're hosted within?
> We figured that it wasn’t improving so much the loading time in our case. Saving around 10KB.

Would you be able to offer the feature I mentioned? Load only enough CSS + JS to show the chat widget circle then load the rest after the user clicks? It would need less than 10KB of code total before compression, and then optimising the size of the full widget wouldn't be as critical.

I know you can trigger the Crisp chat pop-up programmatically so I guess it's something a user could implement but it would be a feature I would really appreciate since I'm always optimising the page speed of websites I help with.