An easy way to speed up your page display is to use an HTML optimization program. Programs like SpaceAgent, VSE Web Site Turbo, and WebOverdrive, all pretty much work the same way, removing excess spaces, tabs, returns, quotes, unnecessary attributes etc. Some even optimize JavaScript and style sheets, though they only remove excess spaces. Optimization is usually the last step in the production process, where the original unoptimized version is saved for later revisions.
Automatic optimization can only go so far.
For maximum control you need to do it by hand. First, rethink what elements are absolutely necessary. The idea is to get the first screen to the user as fast as possible. We run this script as the last step in our CRON that build the home page. This script is available as open source .