Earlier quoted context omitted.
Any tool suggestions for the job of minifying and deployment?
http://developer.yahoo.com/yui/compressor/
+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.