Re:Ask HN: Why do we minify JavaScript, yet not HTML?
by cheald on Sunday December 02, 2012 @06:40PM
(#4863120)
Quantify "significantly". There's a gain, but whitespace compresses Really Damn Well.
[ Parent
| on HN ]
Re:Ask HN: Why do we minify JavaScript, yet not HTML?
by mistercow on Monday December 03, 2012 @12:11AM
(#4864064)
Minifiers don't just remove whitespace. Eliminating comments, for example, can save a lot (although it seems that most HTML out there is poorly commented in the first place). A smart minifier can also drop optional closing tags like </li> for a bit more gain (although I don't know of a minifier that does).