Strip away all comments on your web pages. If you use comments, even at all, then your using up bandwidth. Even though a one line comment may not seem like much, consider the effects of the same comment distributed throughout all your users and on all your webpages. The net effect could result in significant savings over the long term.
Trimming White Space
Remove any excess white space, tabs and carriage returns that you don’t need.
Remove Unnecessary Tags
Often webmasters include tags that don’t need to be closed such as
. If you are using these tags, delete away as they are unneeded.
Minimize Your Headers
Rather than aligning each cell individually, try aligning the entire row. For example, most designers will use the “align” and “valign” attributes of the TR and TD tags in order to align content. Instead of using these attributes on each TD element, consider using it on each row. For example, consider using: TR align=center|left|right for each row instead of repeating TD align=center|left|right for each cell.
Strip Descriptions From Irrelevant Images
If your using images which do not need a description with the ALT attribute of the image tag, consider stripping away the associated description which are embedded with your images. For example, a typical image tag may appear as: . In this example, consider striiping the alt=”…” portion such that the revised code appears as .
Minimize Image Usage / Image Reuse
Each unique image on your web pages requires an HTTP request. In addition, each HTTP request has a wait latency and requires additional overhead from the browser and server to deliver the image. However, images which are re-used through the cache do not require additional overhead from either side. For this reason, you should try cutting back on image use and try re-using the same images multiple times.
Minimize DHTML Usage
Move Client Code to Server Side
Use Relative Paths
When creating links to pages on your own domain, use relative paths rather than complete links to your pages. An example shows this best:
A HREF=”http://www.yoursite.com/link_goes_here/” (Absolute Link)
A HREF=”/link_goes/here/” (Relative Link)