Speed Up Your Site[c] Web Site Optimization

Here's what to keep in mind when you are designing your system. If your system is not expected to be heavily loaded, use simple solutions and default settings to save time. Enabling content compression can save you 30 to 50 percent off bandwidth costs; further fine-tuning may save another 1 percent. And it is a very time-consuming black art.

Remember that gunzip works much faster than gzip, so it is better to keep content compressed and decompress it on demand than compress it on the fly. Use server-side caching for compressed files where possible.

HTML and JavaScript file decompression is well supported by mainstream browsers, although decompressing external CSS files is not. Make sure that you link to any compressed JavaScript files in the head of your documents for reliable decompression.

Here's a summary of web compression tips discussed in this chapter:

Further Reading

  • ACT compression testhttp://compression.ca/

  • Data compression resourceshttp://datacompression. info /

  • Dr. Dobb's Journal Data Compression Resourceshttp://www.ddj.com/topics/compression/

  • "HTTP Compression Speeds the Web" by Peter Cranstonehttp://www. webreference .com/internet/software/servers/http/compression/

  • "Introduction to Data Compression" by Guy Blellochhttp://www-2.cs.cmu.edu/afs/cs.cmu.edu/project/pscico-guyb/realworld/www/compression.pdf

  • Official comp.compression FAQhttp://www.faqs.org/faqs/compression-faq/

 

Категории