Smaller pages mean smaller downloads and faster page loading. As a programmer, my primary goal is to develop PHP code that parses fast and consumes the minimum amount of resources. Bandwidth and filesize were not a problem that I realized until lately. So, what can you do to reduce filesize and as a consequence to that to use less bandwidth?
First of all, you can send your pages as gzip archives. Yes, I know older browsers don’t support that but let’s face it: how many of your website visitors still use a browser that can’t deflate gzipped pages? Not so many.
The most simple way to gzip your webpages is by using .htacces. Just put this line in there and you’re set.
php_value output_handler ob_gzhandler
<filesMatch ".js$"> AddHandler application/x-httpd-php .js </filesMatch>