Is it really worth minifying your HTML?
How come none of the websites does HTML minification?
How do I "minify" JS and CSS and combine them into one file?
Care about your users, don't minify your JS! | LibrePlanet 2021
This is quite a slow video. So I made these timestamps.
-
0.55 - minified code is unreadable (skips "what is JS and what is a minifier").
-
1.43 - minifying strips licences breaking library licences (that's not true. Badly configured minifying will strip licences.).
-
3.00 - gzip > minifying.
-
3.51 - gzip Vs uglifyjs.
-
4.40 - gzip Vs minifying then gzip (no data provided).
-
5.02 - gzip decompression speed.
-
5.40 onwards - some points at the end about build chains potentially breaking (I don't think browser native tech is quite ready to provide a "raw source" type delivery of JS). Some more points on licences breaking due to being omitted during the build chain.
No real points not to minify.
No hard evidence that minifying is bad - other than potential licensing issues, potential broken build chains, and that it makes it harder for users to learn from your code.