22 Jan
Posted by Ray Cheung as Code, LGPL License, Tools
One of the keys to getting your pages to load quicker is to make fewer HTTP requests. So, for example, if you have 6 javascript files it would be much quicker for you to join all the JavaScript together into one file and serve that instead. You can decrease the loading time further by minify your JavaScript, CSS and HTML. And also, by gzipping your page’s components and adding a far-future expires header can make your pages load faster as well.
However, doing all these manually is a pain. Aciddrop has set up a PHP script to automatically do them for you. On the test page the load time with the compressor turned on was generally below second, and without the compressor between 3-5 seconds. The Yahoo Yslow rating went from F(45) to A(97) as well.
Requirements: PHP 4+
Demo: http://aciddrop.com/2008/01/21/boost-your-website-load-time…
License: LGPL License





The better solution is to minify, join and gzip JavaScript and CSS files during building or deploying the project, not with some PHP script which slows your HTTP response. I am using YUI Compressor maven plugin.
From my tests, gzipping HTML result during HTTP response is additional load to server, moreover with lot of requesting clients. And that is not good way.
Very Nice resource
nice thing !
Seems useful.
[...] Fuente: WebAppers [...]
I preffer to compress/pack javascript/css and send in the same page.
Compressing javascript ou css using gzip cause problem with IE6.
I used minify (http://code.google.com/p/minify/) and it works awesome – same concept.
RSS feed for comments on this post · TrackBack URI