Quote:
I'm always surprised when I look at some large website HTML to find out that it has a ton of unnecessary spaces, tabs, new-lines, HTML comments, etc. Just removing those elements can reduce the page size by 5-10%, which in turn can decrease the download latency.
|
5-10%????? WTF is he serving? Maybe if it google.com was his homepage, fair enough...
Quote:
Tip #7: Keep all as much as possible in lower case
This actually works in conjunction with HTTP compression. Remember that this type of compression is lossless, this is, decompressing a content will yield the exactly original, which means that the compression algorithm will treat "DIV", "Div" and "div" as different streams. So, always use lower case for tag names and attributes on the HTML and CSS. Also try to be consistent on your JavaScript.
|
OK, I just converted a 5133KB document to uppercase - it became 5135KB -gain of 0.04% on 5MB doesn't really justify it!
Still I did learn something:
Tip #5: Use Public Caching:
.....
3) Implement an HTTP Filter that automatically renames the file if they have changed.
That's actually pretty neat.