These days mobile devices are getting very popular. It is really cool to access internet while you are in middle of no where. Unfortunately the network you use to access the internet is your phone companies network and still they are pretty slow.
If you are developing web sites for mobile devices you have to consider their network capabilities. Making couple of changes on your html code can make your users save tremendous amount of time.
I am planning to write more optimization tips but today I will mention about the line breaks to optimize time.
Following is a html code sample:
<span>Another line</span>
Usually, we put a line break to make code clear and easy to read. Even though you don't see the line break, it is a byte too. Actually, in windows environment it is 2 bytes (\r\n). Line breaks are ignored by html.
So, previous code sample is no different than this:
I just saved 1 byte (or 2 bytes in windows machine). Client doesn't have to get these bytes.
It might look like a very minor save but if you think that your site is getting 10,000 hits a day, you do the math!
For example, facebook mobile (http://iphone.facebook.com) can optimize their html code. On the other hand, http://google.com/m is pretty optimized by removing line breaks.