If your website is bogging down your users and their devices with heavy pages and poor user experiences, then it’s time to put your website on a diet. The lighter your site is, the more your users will like you (and stick around). All these tips will help you better meet Google’s page speed guidelines and be a lean, mean, money-making machine.
A long time ago, back in the days of HTML tables and 256 colors, the web was pretty slow. All those users on dialup couldn’t download large sites and heavy images. The standard page weight at that time was 100kb. Your entire page should weigh no more than 100kb. Really, true story. But the Internet has gotten fat as it approaches middle age. It has let itself go. Websites are getting heavier and heavier. Faster connections have made us lazy. I do many site audits and frequently see sites that have page weights not over 1MB, which would be quite heavy, but over 10MB and even over 20 MB. How did we get to pages that download over 10 MB or 20 MB of data on every first render? A myth exists that bandwidth is unlimited (it isn’t) and free (not the case for mobile or international). But even when bandwidth is free and unlimited, it isn’t always fast. Not only will your users thank you for putting your website on a diet, but also Google will reward you for it. In fact, Google considers page speed so important they even wrote a patent for it. So what should a site do? Here are five tips on how to make your website faster.
1. Remove Excess Ads
One of the biggest issues facing sites today is the overabundance of ad slots on the page. Not only is excessive ad use an issue for Google and Google News, but your users hate it too. Ads are a problem because they come with scripting and pixels and third-party calls. We can see page weights go up by more than 100 percent when a site is overloaded with advertising. A good ad campaign isn’t about simply sticking more ads on the page. It’s about creating relevant, seamless, frictionless page experiences where users are likely to click on your ad (not be put off by them). Removing excessive advertising from your site often positions you better in Google and reduces your bounce rates. Although you may make a little less money in the short term, you’ll make more in the long run. Bonus Tip Use WebPagetest to get a quick idea of how your site is loading. Review the “Waterfall” document, which will show you where in the page load process your ads are loading and how many calls they are creating. Then add Google Tag Manager to your site. It will load all approved scripts asynchronously, which means they won’t load until after the page first renders. It also has the added benefit of letting your team edit pixels and tagging without having to bother the IT team.
2. Enable Caching & Compression
One of the largest issues we see on websites is the lack of proper caching and compression. Just adding GZIP and setting your cache dates to a more distant point in the future can dramatically reduce your page load, especially on the second visit. Bonus Tip You can use Google Page Speed Insights to get an idea of how well your site is caching and compressing your pages. If your site receives a score under an 80 in desktop of mobile it is too slow. You want to get it above that score. You also can check your page load times in Google Analytics under page timings. This will let you see how users are finding your pages
3. Optimize Your Images
Images are often overlooked and usually the biggest offenders. People from all parts of your company are uploading images and typically they aren’t trained about the proper way to create them. Image resizing isn’t an answer. Resizing doesn’t compress the image, it just changes its physical size. So what do you do? Make sure that whoever is in charge of uploads knows how to properly create, compress, and save images. This means you need to:
- Resize: Physically resize the images to the correct size, or at least the largest correct size.
- Format: Images need to be saved in the proper format – photos as JPGs and line art as PNGs.
- Compression: Images need to be compressed on save. If the image is a JPG, then 60 percent is a good compression rate.
- SVG: Use SVG when you can. SVG (Scalable Vector Graphics) are code-based images, which are lightweight and download quickly. However, make sure you aren’t replacing a small image with SVG, which could be more resource intensive.
Bonus Tip Use a CDN to host your images. A CDN or Content Delivery Network helps place your images closer to the user that is requesting them with the page download.
4. Check Your Hosting
Often a site has issues delivering content quickly because of servers that share a lot of sites, aren’t up to speed, or are operating in poor environments. Have your IT team check your servers for how fast it can retrieve the DNS and what your Time To First Byte is (that is your first pixel downloaded) This need to be under .80 ms. Knowing these metrics can help you quickly discover unknown server issues. Bonus Tip Use virtually dedicated or dedicated hosting. This gives your site its own “room” to hang out in and allows you to serve your pages more quickly.
5. Speed Up Your Scripting
Sites today are overloaded with scripting. Scripting that adds functionality, scripting that tracks users, scripting that loads pages, scripting, scripting, scripting. The issue with scripting is the more you add the slower your pages become. Every script adds resources calls. Every script creates more obstacles to fast page loading. What can you do? When you’re adding scripts to your pages the following considerations should be in place:
- Do you need this script? Seems basic, but there are many times that scripts are added to add something “cool” to a site. Only in rare cases, however, do users actually care about cool. What they actually care about fast. So before you add that cool script ask yourself: does it make the user’s experience better and, if so, does it add to the experience without slowing it down?
- Can we combine this script? Scripts are often added as they are added into the stack, each having its own initializer. Combine your scripts into one file if you can. This way you can load them at one time and minimize resource calls.
- Are we using only the libraries we need? Libraries are used by scripts to make the programming process easier. However, they also load in a lot of unnecessary code. Make sure when you added a script to the page that you are only loading what you need and not the kitchen sink that comes along with it.
Bonus Tip Use Google’s Guidelines for optimizing JavaScript. This will help your developers lean up that code.
A Quick Word About Google AMP (Accelerated Mobile Pages)
Accelerated Mobile Pages is Google’s latest method of speeding up your mobile site. AMP pages have a lot of limitations but if you have a publisher site with limited scripting needs it might be the way to go. Note: This involves a lot of development work, so make sure to check with your IT team to see if it is even possible for what you do. If AMP isn’t a solution for you, then try using these guidelines to make your site as fast as possible. Speed plays heavy into mobile search rankings and also affects desktop. NOTE: The service was turned off, but the Guidelines still offer a lot of insight into what Google sees as important when you’re trying to speed up your website.