Re:Ask YC: Any risks with JS and CSS compression?
by prashantdesale on Tuesday August 26, 2008 @03:23AM
(#286852)
Thanks a lot.
[ Parent
| on HN ]
Re:Ask YC: Any risks with JS and CSS compression?
by nostrademons on Tuesday August 26, 2008 @09:37AM
(#287047)
In particular, most compressors are picky about semicolons. If you use JavaScript's implicit line breaking, they'll break. This includes function definitions: there should be a semicolon after each function definition, something that most JavaScript programmers forget.
I find that using JSMin + GZip (on the webserver level) compresses just as well and tends to break fewer things.