High Performance Websites
Question: How do you make a website fast? That loads faster, responds faster, and that makes the user feel like the application is fast and responsive. Especially one with lots of dynamically generated content and rich interactions. Answer To make a website fast, one has to follow good practices in the frontend and ensure simultaneously that the backend is fast and robust and doesn't take much time to prepare your html document and send back when an Http request comes to the server. Let's talk first about the frontend. The following rules are directly taken from the book High Performance Web Sites . Rule 1 - Make Fewer HTTP Requests Rule 2 - Use a Content Delivery Network Rule 3 - Add an Expires Header Rule 4 - Gzip Components Rule 5 - Put Stylesheets at the Top Rule 6 - Put Scripts at the Bottom Rule 7 - Avoid CSS Expressions Rule 8 - Make JavaScript and CSS External Rule 9 - Reduce DNS Lookups Rule 10 - Minify JavaScript Rule 11 - Avoid Redirects Rule 12 ...