Faster Web Pages: Storage and Bandwidth Savings

The world has turned cost effective. Reading the news it is almost as if all businesses, worldwide, are cutting costs. Bandwidth and disk storage is a commodity. Most small and medium-sized Web sites with moderate traffic can get affordable deals on hosting and bandwidth. While saving bandwidth and storage space is probably not a make or break for these Web sites it can nevertheless add to the bottom line.

Trimming the size of Html, CSS and JavaScript as much as possible will decrease the loading time of a Web page. Shorter fast loading Web pages will improve user experience while visiting your Web site and your Web site will better handle the load generated by the frequent search engine crawlers and traffic peaks.

Trimming the size of a Web page does not have to be complex. Chances are that by eliminating double spaces and comments from Html code will decrease page size considerably.

The data below obtained from a large sample shows double whitespace savings and comment code length.

Whitespace and Comments
Observed Element Observed Category % Found Average Min Max Median 80 Percentile Range
HTML Document Length All 100.00 40,108.27 1,096.00 336,583.00 38,821.38 10,808.08 - 79,962.82
Whitespace Savings All 97.58 1,515.21 1.00 88,439.00 932.08 13.55 - 3,790.27
Comments All 90.71 3,173.67 13.00 189,047.00 1,087.77 233.87 - 7,417.40
Whitespace and Comments Overall

The data shows that on average it is possible to reduce document size by 12% simply by eliminating double whitespace and comments from Html code. That is a good start for faster Web pages and bandwidth and storage savings.

Filed under:
By: Webmaster on : July 2009