23 ways to optimise your website
Saturday, February 16th, 2008Here are 23 ways to optimise your website.
i-marco.nl (6)
- Reducing graphic file sizes
- Reducing the amount of images
- Forcing the browser to perform more simultaneous server requests
- Script tags in your header? Move them to the bottom.
- Even less HTTP requests: merging CSS and Javascript
- Adding GZip compression
Yahoo! (14)
- 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
- Make AJAX Cacheable
Use CSS shorthand properties
e.g. body { background: url("bg.gif"); background-color: #fff; background-repeat: repeat-x; }
Cache your content
Make use of caching plugins, in this case for WordPress, like wp-cache.
Use a trailing slash at the end of directory or root URLs
This avoids the server roundtrip: “the trailing slash tells the server to use the default document list for that folder and load that page. Without it the server first looks for a matching document name, then a folder with that name and use default doc list, finally performing a redirect (302) to that document. So using the trailing slash saves a certain amount of server load and aids the speed the document will load.”
Further reading:
On a quest for ultimate website performance
Yahoo! Developer
Faster Page Loads - Bundle Your CSS and Javascript
CSS shorthand
Web Site Optimization
PHP Packer
Clean CSS