New javascript minifier for CMS pages


We’re upgrading our javascript minification to use terser. The new JS minifier should in most cases shrink javascript file sizes further than the previous minifier.

What’s happening?

HubSpot CMS sites get the benefit of automatic javascript minification to improve page load time. We’re upgrading this minification. This affects only newly created javascript files. So all new javascript files should be better optimized than files before this change.

When is it happening?

This is now live. You won't need to do anything. All future javascript files from the release date onward use the upgraded javascript minifier. If you wish to upgrade a script to use the new minifier, you would need to copy the code from the existing file into a new javascript file. 


View the changelog post.

Jon McLaren

Sr. CMS Developer Advocate

If my reply answered your question, please mark it as a solution, to make it easier for others to find.

0 返信