Speed up your Web Application with JS/CSS compression
Programmer all want their application to be faster and more responsive. This is specially important in Web environment. As we demand more functional and feature from our application, Javascript and CSS files will grow in size, this will impact the performance of the application.
I have discover a wonderful script that will compress JS and CSS on the fly. It uses RewriteEngine to redirect browser looking for JS and CSS file to a PHP script file. It is very easy to implement and transparent to the existing application. No change is required on the existing application. The script also cache compression result in cache directory. I manage to improve 50% vTiger CRM’s Main Page loading time. It is a huge performance increase with so little effort. The wonderful tool is located at http://farhadi.ir/jsmart.html
If you are developing your own application, it is a no brainer if you don’t compress JS and CSS files before sending it across the Internet to the user browser. It would gain better performance, if the compression is automatically in your application rather than using rewrite engine to redirect js/css to compression script on the web server.
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
















To be sincere, I have never been here before, and as a new person I can say that this website looks amazing. I really enjoy it
Keep up the good work.
I recently wrote a mod_perl output filter which sits inside Apache. It intercepts requests for .css files and then “compresses” them on the fly before sending. It’s not gzip compression, what it does is strip whitespace, comments, newlines etc. Check it out here: Compressing CSS on the fly