Front end optimisation
By Darren Wood <darren@dontcom.com>
- use HTML5
- css as close to the top as possible
- javascript right a the bottom
- avoid empty src and href attributes
- new approach to conditional comments — see HMTL5 Boilerplate
- fewer HTTP requests... 1 javascript file, 1 css file, 1 image file
- Minify before deployment
- Avoid CSS expressions
- Always use link over @import
- Avoid the AlphaImageLoader IE filter for PNGs
- Use CSS3 for visual embellishments
- Use OOCSS or learn the principles and build your own ver — github.com/stubbornella/oocss
- Load framework from CDN (http://code.google.com/apis/libraries/)
- Combine and minify
- Cache jQuery Selectors
- Give your selectors context
$(".vcard","#users"); OR $("#users").find(".vcard");
- Don't use a library if you can just use regular old Javascript
- Use a Loader script
- Just look at these links for the full low-down
- Minification
- Image Compression
- PNG8 Creation
- Other useful bits