Today I used the nice Jawr taglib which compresses javascript and css files. There’s enough information on the Jawr website about how to configure everything, so I won’t write about this.
Things to remember are:
- Better structuring / versioning of your development javascript and css versions while still publishing them as 1 file
- Gzip support for compliant browsers
- Give the css and js files cache headers ‘until the sun explodes’
- When you deploy a new version of your site, a new css and js version will be downloaded by the browser
Net result: our YSlow score went from 49 to 69!