20 Jun Review your website performance because every second matter…
A few years ago, Amazon reported that for every 100-millisecond increase in the speed of their website, they noticed an increase in revenue by one percent. This was followed by Google’s announcement that a website’s page load speed was a factor for a site’s ranking in Google’s search results.
The process of optimizing your website’s page load speeds can be a never-ending process, much like running on a treadmill. Page speed optimization will always have room for improvement and will, therefore, never be entirely satisfactory. That said, here are some steps to increase your load speeds.
Minimize HTTP requests
According to a release by Yahoo, 80 percent of a page’s load time is spent downloading the various parts of a webpage viz, stylesheets, images, scripts, etc.
Since an HTTP request is made for every single one of these elements, the more on-page components a page has, the longer it takes for it to render.
The initial step when attempting to minimize requests is to narrow down and benchmark on the number of requests and how many requests the site actually completes.
With Google Chrome, the browser’s developer tools allow users to view the number of HTTP requests made by a site. To see the number of HTTP requests a site makes users can:
- Right-click on the page that needs to be analyzed and select Inspect.
- Click the Network tab.
In case the Network tab is unavailable, you may need to drag the left border further to the left and expand the sidebar.
The Name column denotes the files located on the page. The size of each file is shown under the Size column and the estimated time to load each file is indicated under the Time column.
The bottom left corner of the page displaces the total number of requests that the site has made. Users will be able to speed up the load time of their website by reducing this number. The most straightforward way is to review the set of files and identify those that can be deemed unnecessary.
While it may take some time to observe a noticeable difference, a few files can easily be considered as prime candidates for consolidating.
Use scripts for asynchronous loading
For WordPress, users can check options besides Render-blocking CSS/JS when using WP Rocket’s Static Files tab.
<script async src=”script.js”></script>
Save changes will allow users to verify that everything loads as intended.
Reduce server response time
One of the significant factors in determining how quickly a web page loads is the time it takes for the Domain Name System lookup. A DNS lookup is the process of identifying a specific website name on record. It can be imagined as a computer referencing the phone book for a contact number.
The time taken for this step depends on how quick the user’s DNS provider is. If users find that this is not fast enough, it might be time to change to a faster DNS service provider. To help choose a DNS provider, you can consult a DNS speed comparison report, like this one from SolveDNS, which provides monthly updates ranking the speed of different providers.
Make use of a Content Delivery Network (CDN)
Hosting media files on a CDN is one of the best ways to increase the speed of a website. This process alone can save up to 60 percent of the bandwidth and decrease the number of requests made by the site by 50 percent.
A CDN works by hosting files over an extensive network of servers across different geographic regions. Therefore, when a site receives a visitor from a particular region in the world, it downloads files from the server that is located closest to them. Since the bandwidth is spread across an extensive network of servers, the load on a single server is considerably reduced. This also protects websites from spikes in traffic and DDoS attacks.
Caching can help, but be careful
An efficient method of speeding up a website is to make use of caching. A cache is the short-term memory of a site. When you visit a site for the first time, a copy of the requested files is saved. These “cached” files are displayed during future visits.
However, users need to be careful when considering this option. Given that caching displays a previously saved version of the site to repetitive visitors, there is a possibility that they may contain outdated information. Dynamic sites that include aspects such as a shopping cart or social media feeds, like eBay and Twitter, can be especially problematic.
Fortunately, most plugins automatically clear the cache at regular intervals; however, users may need to do this task manually now and again. If a server is using Varnish Caching, this task can be easily accomplished via the free Varnish HTTP Purge plugin.
Decrease file size for image and video optimization
Images and media files are among the biggest drains on a site’s resources. HTML5 Video players and the related media files can help you greatly compress the size of the files. While they do go a long way in making a website look appealing and can supplement textual content, they also need a larger share of bandwidth and server space. This is especially noticeable when considering sites such as online stores or portfolio that may contain a number of HD images.
Image optimization is a natural process to implement and compresses…