While toying around with NextGen code so that I can activate my custom image mirror, I saw the output from Firebug. I noticed that my HTML output is not compressed (by the absence of gzip content-encoding).
But what if you don’t have access to the Apache configuration, such as in a shared hosting environment?
I have the answer for PHP. I always include this line in the bootstrap code of the applications I build using Zend Framework:
And the output will be gzipped prior to sending it to the browser. The result? Faster transfer to users.
For WordPress you can put the line in index.php:
/* Short and sweet */
Easy, isn’t it? Here are Firebug screenshots, before and after. Notice that I managed to cut the size of my front page by 1/5?
[As the screenshots are too wide please click on Continue Reading to see them]