View Single Post
Old 11-03-2006, 11:13 AM  
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
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.
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote