Ask YC: Any risks with JS and CSS compression?
We are in final stages of finalizing our code for our open alpha. I am researching ways to improve the page load time and am looking at http://webjackalope.com/fast-page-load-time/
The article suggests to compress JS and CSS files, and I am feeling that we should compress our javascript files because we have lots them.
What worries me though is if something will break. Even if we try to test again, the application has lot of functions and testing would take time and at this moment I need to concentrate on hosting setup than application testing.
I've never done it, so want to understand the risks involved. Also if you can suggest best compression tools that would be great.
Thanks in advance,
7 comments
[ 3.3 ms ] story [ 29.3 ms ] threadA common way to do compression that will give you a similar effect is to gzip content from the web server.
I find that using JSMin + GZip (on the webserver level) compresses just as well and tends to break fewer things.
http://github.com/jcoglan/packr/tree/master