Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's all fine and dandy, but minify + gzip is usually significantly better than gzip alone (for javascript and css, at least).


Quantify "significantly". There's a gain, but whitespace compresses Really Damn Well.


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).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: