Header Ads

Tips to Speed Up Your Website


15 Tips to Speed Up Your Website

15 Tips to Speed Up Your Website

1. Website should be well designed.There should not be unnecessary tables.Instead design tabular views using Div.

2. If same data is required among multiple users, Caching can be used. Cache stores the data on application server's cache memory. So each time when a request is made the data will come from cache memory than Database.Example, On a particular page load you want a grid of multiple records to be loaded and data to display is same for all the users.In such scenario you can place the data in cache memory. It will boost the performance to a certain height.

3. Make JavaScript and CSS external.Make internal only if they are too small.

4. Bundling and minification: It will club all the script and CSS files into bundles.Example: If there are 10 JS files, if you create a single bundle server will hit once instead of 10 times to get these files.Same is the case with CSS. Besides it will minify your files, meaning will remove unnecessary spaces and line breaks.

5. If not using Bundling, atleast go for minification on production.You can minify your files online.There are lots of online converters for the same.

6. Place all scripts at bottom of page right before closing of body tag ().But keep CSS file links in head of element.

7. If you are using some scripts from some CDN, then use their online path instead of downloading to local and placing in your project. The reason behind this is, most of the time our browsers have already visited the sites that are referencing to such scripts and they are already cached in our browser.

8. Use compressed images.Make use of Image Sprites, which allow you to combine several images into one. From there, you can use CSS to extract the portion of the combined image to render .It will also reduce HTTP request count.

9. GZIP Compression: GZIP compression saves 50% to 80% bandwidth and will significantly increase the website's loading speed. Compresses web pages, CSS, and javascript at the server level before sending them over to the browser.

10. Async: Make use of this keyword for those JS files that you can allow to download in background.

11.Database Optimization: Stored Procedures should be efficiently written.Its execution time should be narrow as small as possible.Tables inside DB should be properly indexed.

12.When you're hosting your website with a hosting provider or with a cloud provider, you'll get what you pay for. If you're running a quality website , avoid shared hosting. Instead, make sure that your hosting infrastructure is dedicated to your site only.

13.Check your browser console and fix the bugs displayed.like 404 request not found for some internal resources or other errors.

14.Check the network traffic in browser console and see which file is taking long to load.

15.Google PageSpeed Insights: PageSpeed Insights Insights analyzes the content of a web page, then generates suggestions to make that page faster.




No comments:


Powered by Blogger.