Let’s make the web faster, says Google. Best practices for speeding up your website, says Yahoo. Search engines want to crawl the web faster, and website owners want their users to have a good navigation experience which includes fast page loading. Both Google and Yahoo say approximately the same regarding techniques for optimizing page load and rendering speed. I am not going to go through each one of them, it’s not the point. Let me just tell you my experience regarding the implementation of these rules.
1. It’s not that hard
It’s not so hard to implement these rules. Any savvy web developer should have no trouble setting up gzip compression or the page cache. If you think it’s hard, you should not be doing deployments. No more weak sauce 25th hour deployments, please!2. You should plan it ahead
When planning for a new website or a website revamping, you should discuss and establish the performance goals with the team building it. These are the minimal list of things I think should be established beforehand:- Maximum total page weight for empty cache - what is the sum in bytes of all the page elements, including HTML, CSS, javascript, images, flash movies, etc?
- Maximum total page weight for primed cache - the same as above, but when the customer is reloading a page shortly after.
- Static files should have a very long expiration dateur
- What should be the cache expiration time for dynamic content?
- How many HTTP requests the browser will make for empty and primed cache?