CMS Development

jmclaren
HubSpot Employee
HubSpot Employee

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

Get started developing on the HubSpot CMS Developer Changelog
How to optimize your CMS Hub site for speed

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

0 Respuestas 0

0 Respuestas

Aún no hay respuestas para esta publicación.

Por ahora, ningún usuario ha respondido a esta publicación. Vuelve pronto para ver si alguien tiene la solución o envía tu propia respuesta si sabes cómo ayudar. Cada grano de arena cuenta.

Responder esta publicación

¿Necesitas ayuda para responder? Echa un vistazo a las pautas de la comunidad