+2 Grok Douglas Crockford's DOM theory then optimize how your scripts use the DOM, it is very easy to abuse the DOM, don't. Grok the DOM.
http://code.google.com/p/django-compress/
Better yet, use Google Page Speed.
Reply on news.ycombinator.com