3 ms·
I like the sound of "Don't minimize that HTML". It'd be nice if the HTML of webpages was more transparent. > Well, you don't save much because your web pages s
by foodbag 5y ago
I like the sound of "Don't minimize that HTML". It'd be nice if the HTML of webpages was more transparent.
> Well, you don't save much because your web pages should be gzipped before being sent over the network, so preemptively shrinking your content probably doesn't do much to save bandwidth if anything at all.
Does anybody have empirical evidence on how much minify + gzip saves over just gzip?
- spurgu 5y ago> Does anybody have empirical evidence on how much minify + gzip saves over just gzip? https://stackoverflow.com/questions/807119/gzip-versus-minify https://stackoverflow.com/questions/807119/gzip-versus-minif...
- datagram 5y agoDecided to try it out using the source for this page as an example, with kangax's HTML minifier (https://kangax.github.io/html-minifier/ https://kangax.github.io/html-minifier/) Uncompressed, Unminified: 16,979B Uncompressed, Minified: 16,316B Ccompressed, Unminified: 7676B Compressed, Minified: 7535B So minifying before compressing saves an extra 141 bytes, but the vast majority of the size savings are from Gzip