Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
06-07-2009, 03:53 PM #1
- Join Date
- Jun 2005
- Thanked 0 Times in 0 Posts
gzip compression - best practices??
So I had been reading up on gzip compression on this Google Page Speed page, and I came across some stuff I had never heard/thought about.
They recommend that, to "make compression most effective", you should:
- Specify CSS key-value pairs in the same order where possible, i.e. alphabetize them.
- Specify HTML attributes in the same order , i.e. alphabetize them. Put href first for links (since it is most common), then alphabetize the rest. For example, on Google's search results page, when HTML attributes were alphabetized, a 1.5% reduction in the size of the gzipped output resulted.
- Use consistent casing, i.e. use lowercase wherever possible.
- Use consistent quoting for HTML tag attributes, i.e. always single quote, always double quote, or no quoting at all where possible.
I saw that w3 used to have something similar in their Mobile Web Application Best Practices (see section 18.104.22.168), but that it was edited out in the newer revision.