21 Tricks To Boost Your Website Speed
Step 1: Eliminate Unnecessary Plugins and Add-Ons
Step 2: Reduce, Or Eliminate, The Amount of Social Sharing Buttons on Your Website
Step 3: Configure All Analytics Tracking Codes and Ad Networks Codes to Load Asynchronously
Analytics tracking codes and ad networks’ codes can slow down your website. Sometimes the remote servers are slow, or they go down, and the result is a long loading time for your website.
However, if you configure the codes for asynchronous delivery, you can ensure that a down or slow server won’t negatively impact the speed of your website.
Step 4:Use Expires Headers
Step 5: Enable Website Caching
Step 6: Utilize A Content Delivery Network (CDN)
Step 7: Dump Your Web Host for A Better One
Step 8: Switch the Theme of Your Website
The theme of a website can greatly affect the speed of that site. Code bloat, or overly long and poorly written code, will decrease the performance of your website.
For an example of just how much a difference the theme of a website can make on its speed, read Julian Fernandes’ case study, in which he was able to reduce his load time from 630ms to 172ms by merely switching his theme to a better written one.
Bottom line: don’t just focus on the look of a theme when choosing one for your website; consider how that theme will affect your website speed.
Step 9: Make Use of Google Pagespeed
Step 10: Use Smaller Image Files
Large images sizes (1mb or higher) result in the tying up of server resources and take more time to load. Use the following tools to optimize image files on your website to make them smaller, while making sure that the quality of the image is not compromised:
- WP Smush (for WordPress)
- Kraken (for all platforms, including Drupal and Joomla)
- EWWW Image Optimizer (for WordPress)
Step 11: Compress Your Website Files Using Gzip
Smaller sized files result in a faster loading time. Similar to ordinary computer file compression, Gzip reduces the size of your website files by compressing them into zip files.
Smashing Magazine highlights the case of a website going from 68KB to 13KB by enabling Gzip.
Use this guide by GTmetrix to enable Gzip on your website.
Step 12: Clean Your Database on A Regular Basis
Step 13: Reduce the Number of Javascript And CSS Files On Your Website
A visitor’s browser might be treating all the JavaScript and CSS files on your website as individual files. This, in turn, produces multiple requests, which slows down your website loading time. You can reduce the number of these individual files, or minify them, by putting them in one place.
Step 14: Eliminate Multiple Background Images
Step 15: Use A Single Open Connection to Make Server Requests
Step 16: Scan for Broken Links In Your JavaScript, CSS, And Image URLs
If you have broken links in your JavaScript, CSS, or Image URLs, your website might be experiencing frustratingly slow loading times. You should scan for these broken links and resolve them to give your visitors a better browsing experience.
While you are at it, look for all other broken links, which don’t necessarily impact the speed of your website, but do affect the user experience negatively nonetheless.
Step 17: Host All Images on Your Own Website
Image hotlinking, or “inline linking” is when you avoid loading images on your own server by just linking to an image on another website. Theoretically, this saves you bandwidth, but it can actually reduce the speed of your website, especially if that image hosting website is down or is itself slow loading.
A good rule of thumb is to host the images on your own website first before linking to them.
Step 18: Host as Many Files on Your Own Server as Possible
It is nearly unavoidable that your website will rely on other websites for files, such as embedded videos and other multimedia. However, if there are too many external requests or you are requesting from slow websites, your website speed will be negatively affected.
Limit this possibility by hosting as many files as possible on your own server. Be sure to verify the reliability of websites that you do request from.
Step 19: Check The Quality Of Your CMS
Step 20: Pay Attention to Whether Your Php Files Are Slowing Down Your Website
Step 21: Disable External Hotlinking of Your Own Images
Get Started Now by Testing the Speed of Your Website!
Now that you have followed the tips and tricks above to improve the speed and performance of your website take a moment to test your website speed to see the impact we have made. Be sure to leave a comment below if we have helped you optimize and improve the quality of your website experience.
These are my favorite tools for assessing the speed of your website:
Pingdom Website Speed Test: This tool allows you to focus on minimizing the loading time of your website and lowering the number of server requests that are made. Additionally, it features a comparison tool that allows you to see how your website performs against other websites.
GTMetrix: Here you are given a rating from A to F after analyses by Google Pagespeed Insights and Yslow. Suggestions for optimization are provided.
Webpage Analyzer: Use this tool to find out information of page size and download time. Improvement suggestions are provided.
Google Pagespeed Insights: Here you receive a score up to 100. A cool feature is that this tool allows you to test mobile speed.
Yslow: This tool to gauge website speed is run off of Yahoo!’s rules for website performance.
WebPage Test: Here your website speed is evaluated on a scale that goes up to 100.