if you're using rails, just use the asset packager plugin. it's awesome. and gzip your javascript and css -- use mod_deflate if you're using apache. that's all you really need. and mod_expires, if you want to get an 'A' grade from the yslow firefox/firebug extension.