Don’t sabotage that beautiful website you’ve built with slow load times! Here are a few ways to speed up your site, enhance SEO and leapfrog the competition:
Minimize request size
Ideally, an HTTP request should not go beyond 1 packet. The most widely used networks limit packets to approximately 1500 bytes, so if you can constrain each request to fewer than 1500 bytes, you can reduce the overhead of the request stream. Techniques for minimizing request time vary, but we’ll point out a few of the major ones below:
Leverage browser caching
ExpiresByType image/jpg “access 1 year”
ExpiresByType image/jpeg “access 1 year”
ExpiresByType image/gif “access 1 year”
ExpiresByType image/png “access 1 year”
ExpiresByType text/css “access 1 month”
ExpiresByType application/pdf “access 1 month”
ExpiresByType application/x-shockwave-flash “access 1 month”
ExpiresByType image/x-icon “access 1 year”
ExpiresDefault “access 7 days”
Two great resources for minimizing files are:
Here are a few quick tips for decreasing load time by compressing images:
- Don’t upload overly large files. Instead, use Photoshop to resize or crop images to the maximum pixel size required.
- Save Files For Web using Adobe Photoshop. Use a .jpg compression setting of about 60.
- Use PNGs sparingly; if transparency is not required, flatten your image and try saving in .jpg format.
- Strip out unnecessary Metadata
- Remove Color Profiles
P.S. ImageOptim.com is great software for Optimization
Have fun downsizing!