This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the web-development category.
Last Updated: 2024-11-21
My client wanted his page time faster. I optimized webpack assets with minification and so on. The first round brought the asset size down from 3mb to 1mb.
A colleague then had gotten it down another 50%. How? By adding a gzip compression plugin. I had assumed this would not make such a big difference after minification. I assumed wrong.
TLDR:
In real-world scenarios it is always advised to apply both minification and compression. It can lead to a very lightweight version of your CSS, JavaScript, and HTML files.