I decided to optimize the page and found that the following actions can be taken to decrease the load time.
- Reduce the number of requests
First of all, I opened up my theme’s stylesheet and found several unused classes with image backgrounds and bullets. I removed those classes and removed all references to non-existant files.
- Reduce the total download size
- Cache files client side
# Cache all files for the next 3 hours ExpiresActive On ExpiresDefault "access plus 3 hours"
The final result was great. The homepage size got reduced to 159 KB, which was less than half of the original size. The page load time also reduced to 19.3 seconds from about 32 seconds.
Make sure you backup your current .htaccess file before trying the above code. So that you can revert back if something goes wrong.