http://developer.yahoo.com/yui/
http://developer.yahoo.com/performance/rules.html
http://en.wikipedia.org/wiki/Gzip
http://www.csscody.com/use-gzip-components
much more...
i remember those times when 14 kilobytes was outer limits. and i remember also i've built pages which loads all the necessary content and images into the cache at once - with only one page call. somewhere I have a backup on a floppy-disk.
today it's much more difficult. many pages nowadays load hundreds of kilobytes into the browser-ram. no problem anyhow. but speed and performance may be critical.
Today i had time for experiments and found good solutions.
For example, add one of these into your htaccess.
Code: Select all
<IfModule mod_deflate.c>
<FilesMatch "\.(css|js|xml)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>
Code: Select all
<IfModule mod_deflate.c>
<FilesMatch ".*\.(html|php|css|js|xml)$">
SetOutputFilter DEFLATE
</FilesMatch>
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/xml application/xhtml+xml
AddOutputFilterByType DEFLATE application/javascript application/x-javascript
</IfModule>
Now let's compare some of these lines:
Code: Select all
<FilesMatch "\.(css|js|xml)$">
Code: Select all
<FilesMatch ".*\.(html|php|css|js|xml)$">
What's the best way to compress contents of the page?
What experience do you have with compression?
What solutions do YOU use?