References:
- Google - https://developers.google.com/web/fundamentals/performance/
- Mozilla - https://developer.mozilla.org/en-US/docs/Web/Guide/Performance
- Yahoo! - http://developer.yahoo.com/performance/rules.html
Basic Optimization Rules
- Make fewer HTTP requests
- Use a Content Delivery Network
- Add an Expires header
- Gzip components
- Put CSS at the top
- Move scripts to the bottom
- Avoid CSS expressions
- Make JavaScript and CSS external
- Reduce DNS lookups
- Minify JavaScript
- Avoid redirects
- Remove duplicate scripts
- Configure ETags
optimizing assets (images, scripts, and styles) optimizations specific to scripts optimizations specific to styles