5 Ways to Increase Your Website Speed in 2020


Speed Is your website loading slowly? 53% of mobile visitors leave a site if it takes more than 3 seconds to load. Slow-loading websites result in poor user experience and take a toll on your conversion rate. In this article, we are going to give you some useful tips to optimize your website for better speed.

Speed

These optimization techniques are not that difficult. However, you may need some technical know-how to implement some of the tips mentioned below.

1. Avoid redirects:

Website developers often use redirects to avoid having broken links. Redirects are useful when you move or delete a page from your website and want to send the potential traffic of those old pages to the new ones.

However, you should avoid having a long chain of redirects as this may slow down your site. Each redirect adds an extra HTTP request-response roundtrip and sometimes add more for domain name system (DNS) lookup, transmission control protocol (TCP) handshake and transport layer security (TLS) negotiation.

So, while redirecting traffics from URL A to URL B is okay, avoid redirecting from URL B to another URL C. In cases like these, you should eliminate URL B and redirect from A to C instead.

Related:- 8 Best Ways to Fix Cel­lu­lar Data Not Work­ing on iPhone

2. Minimize HTTP requests:

An HTTP request is made for each one of the elements on a page. So, the more on-page components, the longer it takes for the page to render.

Downloading of different contents takes up most of the website load time. By reducing the number of page elements and inline your JavaScript if there’s not a lot of code, you can easily reduce HTTP requests.

3. Minify and combine files

You can reduce the number of requests by minifying and combining your HTML, CSS and JavaScript files. Minifying a file involves removing unnecessary formatting, whitespace, and code.

Eliminate extra spaces, line breaks, and indentation since all these parts of the code add to the size of your page.

If your site has multiple CSS and JavaScript files, you can combine them into one. This file would then need one Http request instead of several.

When compressing images, it is imperative to know that image quality declines with compression.

So, if the images you intend to compress are product images, then it would not be a good idea to go for maximum compression as those images have to be rich.

Related:-Journey of Creating Compelling Mobile Web Application

4. Compress your images:

The smaller your files, the faster they load. So, it’s best to keep your file small. Images are often the largest files on a webpage. Though images are necessary for great user experience, they often slow down a website. You cannot eliminate images from your site, but for optimization purposes, you can compress them.

There are many free image compressors on the web that reduces the size of image files without undermining the image quality. You can try compressor.io to reduce your image sizes.

Pro tip:

  • Keep your product photos within the range of 80-150 KB.
  • Within a range of 250-350 KB, the feature images on your homepage would be optimum.

These are good benchmark numbers. You are free to tweak yours for your site.

5. Improve server response time:

Faster server response time is necessary to increase the speed of your website. Google recommends server response time to be under 200ms. You can try HTTP/2 to boost your performance.

If you’re using a slow DNS, the time it takes for browsers to locate your site increases quite a bit. Switching to a faster DNS provider can speed up the process. 

Here are a few more ways to improve your server response time:

  • Use a Content Delivery Network. It is a network of proxy servers and data centers geographically spread out to deliver packets ASAP.
  • Optimize your database