It is very important that your website should load faster.No matter how much content is interesting in your website,if it doesn't appear speed,it is unlikely that they will visit again.So,To make a website run fast,one has to follow good practices in the frontend and ensure simultaneously that the back end 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 see about the frontend.
- Make fewer HTTP Requests
- Use a content Delivery Network
- Add an Expires Header
- Put Stylesheets at the top
- Put Scripts at the bottom
- Avoid CSS Expressions
- Avoid Inlining
- Make Javascript and CSS external
- Reduce DNS Lookups
- Minify Javascript
- Avoid Redirects
- Remove Duplicate scripts
- Configure ETags
- Make AJAX Cache able
Before you start to fix things.Find out what's broken.
- Always use web optimized pngs and jpegs.They are significantly smaller in size and save a lot of time.
- Do not use duplicate images.
- Use a content delivery network(CDN)
- Gzip components
Similarly, there are different developer tools for modern browsers which help you identifying what elements in the site are loading slowly.
No comments:
Post a Comment