Internet Marketing School All Posts,Seo How to Speed Up Your WordPress Website – WordPress-performance & optimization

How to Speed Up Your WordPress Website – WordPress-performance & optimization



How to Speed Up Your WordPress Website - WordPress-performance & optimization

How to Speed Up Your WordPress Website – WordPress-performance & optimization

So my buddy Joe messages me and he’s like & quot. Hey can I hire you to speed up my WordPress website & quot And I was like & quot Dude … Just do A B and C and I’m. Pretty sure you’ll, see a huge performance, boost.

A few days passed and he said & quot. The speed tips you gave me worked perfectly. & quot. So today I’m, going to show you how to speed up your WordPress site with three simple steps and take your site speed from something like this .

.. to this. Stay tuned. Google has used site speed as a ranking signal for desktop searches since 2010., And as of 2018 page speed became a ranking factor for mobile searches, too. And even though speed improvements will only affect a small percentage of slow websites.

Faster page load times lead to better user experience and, ultimately, more revenue.. In fact, a study by Google shows that, as page load time goes up, bounce rate rises with it.. Now there are numerous reasons why your website might load slowly.

, But the most common reasons that I’ve seen are due to slow connectivity, caching page size and sometimes more technical reasons like render-blocking JS.. But if you’re, anything like Joe who’s, not exactly the most technical person, then the three steps that I’m about to show you should help you get better performance from your site.

. Now before we get started. It’s, important to note that the things I did for this site won’t necessarily translate perfectly to your site.. There are tons of things to consider when it comes to WordPress site speed.

Like your theme’s code. Specific plugins, you might be using server configuration image, file, sizes and more.. So as we go through the tutorial, I’ll, try and explain the more technical reasons behind poor performance, so you can hopefully diagnose further issues yourself.

Alright. So let me give you a background on the website. ll be optimizing and we’ll start with some benchmark speeds.. This is a brand new affiliate site built on WordPress, using the free, WP Astra Theme.

He’s, activated, seven plugins, many of which will contribute to page load time in big and small ways. Now to keep things simple, I’ve run a single post, which has text images and a video through three page-speed tools.

PageSpeed Insights Shows a mobile score of 45 and a desktop score of 79. Pingdom shows a load time of 1.72 seconds, page size of 1.7mb and 63 requests. And GTMetrix fully loaded in 4.3 seconds with a page size of 1.

55 megabytes and 61 requests.. Now, since these tools only allow you to view one page at a time, I ran a full crawl using Ahrefs’Site Audit tool.. And if we look in Page Explorer you’ll see there were a total of 23 pages with a load time of 1 second or longer, which is basically all of the site’s pages.

So there’s. Definitely some room for improvements., So the first thing we did was to switch DNS providers to Cloudflare’s, free DNS service.. Now, in order to understand why we used Cloudflare, you need to understand how the web works, at least at an elementary level.

Websites. Are just files on a computer that are made accessible through the Internet. Now each device that’s connected to the Internet has an IP address, including the server that hosts your website..

So if your server is located in Los Angeles, California and your visitor is in Las Vegas, these two IP addresses need to create a connection in order to download the file contents to the device.. Now IP addresses are tough to memorize, and I doubt many people would key in an address like this, to visit your site.

That’s where DNS comes into play.. Dns stands for Domain Name System. S often referred to as the & quot phone book of the world wide web. & quot In short, DNS maps domain names to IP addresses, so people can type in a domain name to visit a website.

But the thing with this is that when someone types in the domain name in their browser, a DNS lookup occurs to find the IP address of the server., So that takes time. And usually free DNS providers from your domain registrar are usually slow to respond.

Creating slower page load, times. Cloudflare’s. Dns, on the other hand, is pretty darn fast, considering it’s free., But again your mileage may vary depending on the DNS provider. You’re, currently using.

So to set this up. Sign up for a Cloudflare account and then click Add a site. Enter your domain name, select and confirm your plan and after a few seconds, Cloudflare will give you a chance to review your DNS.

Records. Click Continue and you’ll, be asked to change your nameservers, which is something you’d, need to do with your domain registrar. Boom Step, one is done.. The next thing we did was purchase and install the WP Rocket.

Plugin. WP Rocket is an all-in-one site, speed, optimization plugin for WordPress., And they make it super-simple to make technical optimizations. Even if you have no clue what you’re doing., The plugin handles common page-speed optimizations, like caching preloading, compression and lazy loads images to name a few.

After activating the plugin. You can access the WP Rocket settings from the top navigation bar.. Alright. So let’s, go through some of the important settings, starting with caching.. If you’re unfamiliar with caching, it’s, basically a way to temporarily store copies of files, so it can be delivered to visitors in a more efficient way.

And because this site is a basic blog that’s responsive. I enabled caching for mobile devices. Next is file optimization. Ll, spend the majority of our time. For the Basic Settings.

I chose to minify HTML and optimize. Google Fonts. Minification just removes whitespace and comments from code which will reduce file size. And smaller files load faster than larger ones.. I also chose to optimize Google Fonts since the theme uses them.

The next section is about optimizing CSS files. Again I minified CSS files and also chose to combine them.. You already understand the benefits of minification, so let’s. Touch on combining files. WordPress sites often include multiple CSS files. Some will be for themes, others for plugins, and you might have added some custom ones too.. Now, whether you choose to activate this option or not, will mostly depend on how your server delivers the files.

Generally speaking, your files will be loaded either using HTTP 1.1 or HTTP 2.. With 1.1, your files will be loaded consecutively, meaning one file needs to fully load before the next one starts loading.

So, combining your CSS scripts can help reduce the load time, because fewer CSS files will need to be loaded.. Now, with HTTP 2, the files can load concurrently., Meaning if you have multiple CSS files, they can begin loading at the same time.

So combining them won’t necessarily be as impactful. To see. If your site uses HTTP 2, you can use Key CDN’s tester and key in your URL.. The final option we enabled is to optimize CSS delivery.. Basically, this option will generate CSS needed for content above the fold and asynchronously load other CSS files.

So they don’t block the rendering process.. Now these concepts can be quite technical, so I won’t expand on these, but in general these are page speed, optimization best practices.. Alright, let’s, scroll down to the JavaScript files section.

So first I removed jQuery Migrate, which is a file that’s been added to WordPress since version 3.6.. Now, since there weren’t any issues with jQuery. For this theme or any plugins, I chose to disable it as there’s, no point in loading an additional script without purpose.

Again we chose to minify JS files, as we did with HTML and CSS and combined our JS files, since there were no Conflicts or issues., And the last option we enabled is to defer loading of JavaScript.. This option will basically delay the loading of JavaScript files, so the most important content like your HTML and CSS, can be delivered to your visitors, first.

And then the JS will load., And this will in most cases fix the & quot, eliminate render-blocking JS & quot issue. That you may have seen in PageSpeed Insights. Now it’s, important to note that if you choose to minify combine and/or defer your JavaScript files, things may break on your site.

, So it’s, important to actually test your site’s functions before permanently, leaving it on.. Alright, let’s. Move on to the Media category.. Here I’ve chosen to lazyload all media files. LazyLoad improves page speed because it defers the loading of images and videos until they’re visible on the screen.

In fact, WordPress 5.5 will lazy-load images by default. T necessarily need a plugin. If you just want this feature. Next up is Preloading.. Preloading allows you to define essential resources, so that browsers know the priority of files that should be loaded.

First., For example, let’s say that your HTML code looks like this. Based on this code, the JavaScript file would need to load first, simply because of hierarchy.. Of course you could edit the code, but that can get messy and confusing.

Exactly what this option. In WP Rocket does for you. Now. The last thing I want to talk about here is using a CDN. And it’s, easiest to understand how these work. If we look at our first example of how devices connect to web servers.

So again, if the server is in LA and a visitor is in Las Vegas, it probably won’t, take very long for the two devices to connect, seeing as they’re relatively close in proximity., But what happens when someone from Germany, India, Australia or Singapore tries to connect to the web server? It’s going to take longer.

And that’s, where CDNs can help.. Cdn stands for Content Delivery. Network. And that’s, exactly what it is., A network of servers located all over the world that delivers content to visitors as fast as possible.

By using a CDN. You’re, essentially caching, files on multiple servers. Globally., Then, when a visitor tries to access your site, it’ll connect them to the one that’s closest creating a faster connection between the user and the content.

So if your site attracts a global audience, then it might be worth signing up for a CDN service enabling the option in WP Rocket and adding the appropriate CNAME.. Now there are other free caching plugins that have a lot of these features like Autoptimize and W3 Total Cache, but I personally prefer to pay a small fee for WP Rocket, as I’ve had the best results with them.

And the final step in This site, speed, optimization tutorial, is to optimize your images.. Now, since we’ve, already added LazyLoad to images, this will solve a lot of problems.. But if you’re using featured images that are above the fold on load, then lazyload isn’t going to help.

Plus smaller images will save you with storage space.. So the simple solution is to compress your images using lossy or lossless. Compression. – And there are some great plugins – that’ll, do this, for you, like ShortPixel and Imagify.

Now, to give you an idea of how much image compression can help take a look at the WordPress media library here.! You’ll, see that ShortPixel has reduced the image sizes by quite a lot, which will help improve pagespeed.

ShortPixel also has a feature that lets. You serve images in the WebP format, which basically lets you compress images even further, without compromising quality by much.. Just go to Settings and choose ShortPixel.

Then click on the Advanced tab. From here you’ll, want to make sure that you Ve checked this box, so ShortPixel creates a WebP version of your images.. So now, ve done the three main optimizations for WordPress sitespeed, let’s, run the PageSpeed tools and compare them with our original benchmarks.

On PageSpeed insights. The page previously scored a 45 on mobile and now has a score of 95.. It had a desktop score of 79 and now has a near-perfect desktop score. On Pingdom, the page previously loaded in 1.

72. Second, with a 1.7mb page size and 63 requests., With the new speed test you’ll see, there was a significant decrease on all three metrics. Page. Size is just over 900 kilobytes load. Time came in at 200, milliseconds and the number of requests have shrunk by nearly 3X.

And you’ll, see the same pattern for GTMetrix and improvement across the board.. Finally, I ran a new crawl of the site with Ahrefs’Site Audit and, as you can see, every single page loaded in under a second.

Now these are the steps that worked for Joe’s site and I’ve used it for other sites with success., But remember each WordPress configuration will be different since you might be using a clunkier theme, more resource-consuming, plugins have inferior hosting Or you have tons of third-party tracking scripts.

So if you’re still unhappy with your site, speed after making these optimizations. Ll likely need more custom work done for you., So you may want to consider removing plugins and scripts.

Switching themes or hiring a developer to make the appropriate fixes. So give it a shot, and if you enjoyed this tutorial, then make sure to like share and subscribe for more actionable SEO and marketing.

And let me know in the comments if these tips helped you boost your WordPress site’s. Speed., I’ll, see you in the next tutorial., so my buddy Joe messages me and he’s like hey. Can i hire you to speed up my wordpress website and i was like dude just do a b and c and i’m, pretty sure you’ll, see a huge performance boost a few days passed and he said the speed tips.

You gave me worked perfectly so today i’m, going to show you how to speed up your wordpress site with three simple steps and take your site speed from something like this. To this stay tuned, google has used site speed as a ranking signal for desktop searches since 2010, and as of 2018 page speed became a ranking factor for mobile searches too, and even though speed improvements will only affect a small percentage of slow websites faster, page load Times lead to better user experience and, ultimately, more revenue.

In fact, a study by google shows that, as page load time goes up, bounce rate rises with it. Now there are numerous reasons why your website might load slowly, but the most common reasons that i’ve seen are due to slow connectivity, caching, page size and sometimes more technical reasons like render blocking js.

But if you’re, anything like zack who’s, not exactly the most technical person, then the three steps that i’m about to show you should help you get better performance from your site. Now before we get started.

It’s, important to note that the things i did for the site won’t necessarily translate perfectly to your site. There are tons of things to consider when it comes to wordpress site speed. Like your theme’s code.

Specific plugins, you might be using server configuration image, file, sizes and more so as we go through the tutorial. I’ll, try and explain the more technical reasons behind poor performance, so you can hopefully diagnose further issues yourself.

Alright, so let me give you a background on the website. ll be optimizing and we’ll start with some benchmark speeds. This is a brand new affiliate site built on wordpress, using the free, wp astra theme.

He’s, activated, seven plugins, many of which will contribute to page load time in big and small ways now to keep things simple. I’ve run a single post, which has text images and a video through three page speed tools, page speed, insights shows a mobile score of 45 and a desktop score of 79.

Pingdom shows a load time of 1.72 seconds, page size of 1.7 megabytes and 63 requests and gt metrics, fully loaded in 4.3 seconds with a page size of 1.55 megabytes and 61 requests. Now, since these tools only allow you to view one page at a time, i ran a full crawl using ahrefs site audit tool.

And if we look in page explorer you’ll see there were a total of 23 pages with a load time of one second or longer, which is basically all the site’s pages. So there’s. Definitely some room for improvements, so the first thing we did was to switch dns providers to cloudflare’s free dns service.

Now, in order to understand why we use cloudflare, you need to understand how the web works, at least at an elementary level. Websites are just files on a computer that are made accessible through the internet.

Now each device that’s connected to the internet has an ip address, including the server that hosts your website. So if your server is located in los angeles, california and your visitor is in las vegas, these two ip addresses need to create a connection in order to download the file contents to the device.

Now ip addresses are tough to memorize, and i doubt many people would key in an address like this, to visit your site, that’s where dns comes into play.

S often referred to as the phone book of the world wide web in short, dns maps domain names to ip addresses, so people can type in a domain name to visit a website. But the thing with this is that when someone types in the domain name in their browser, a dns lookup occurs to find the ip address of the server.

So that takes time and usually free dns providers from your domain registrar are usually slow to respond. Creating slower page load times, crowdflare’s. Dns, on the other hand, is pretty darn fast, considering it’s free, but again your mileage may vary depending on the dns provider.

You’re currently using so to set this up. Sign up for a cloudflare account and then click add a site enter your domain name, select and confirm your plan and after a few seconds, cloudflare will give you a chance to review your dns records.

Click continue and you’ll, be asked to change your name servers, which is something you need to do with your domain. Registrar boom, step 1 is done. The next thing we did was purchase and install the wp rocket plug-in wp rocket is an all-in-one site, speed, optimization plug-in for wordpress, and they make it super simple to make technical optimizations.

Even if you have no clue what you’re doing, the plugin handles common page speed optimizations like caching, preloading, compression and lazy loads images, to name a few after activating the plugin. You can access the wp rocket settings from the top navigation bar right.

So let’s, go through some of the important settings, starting with caching. If you’re unfamiliar with caching, it’s, basically a way to temporarily store copies of files, so it can be delivered to visitors in a more efficient way and because the site is a basic blog that’s responsive.

I enable caching for mobile devices next is file optimization. Ll, spend the majority of your time for the basic settings i chose to minify html and optimize. Google fonts minification just removes white space and comments from code which will reduce file size and smaller files load faster than larger ones.

I also chose to optimize google fonts since the theme uses them. The next section is about optimizing css files. Again, i minified css files and also chose to combine them. You already understand the benefits of minification, so let’s touch on combining files.

WordPress sites often include multiple css files. Some will be for themes, others for plugins, and you might have added some custom ones too. Now, whether you choose to activate this option or not, will mostly depend on how your server delivers the files.

Generally speaking, your files will be loaded either using http 1.1 or http 2.. With 1.1, your files will be loaded consecutively, meaning one file needs to fully load before the next one starts loading.

So combining your css scripts can help reduce the load time, because fewer css files will need to be loaded. Now, with http 2, the files can load concurrently, meaning if you have multiple css files, they can begin loading at the same time.

So combining them won’t necessarily be as impactful to see. If your site uses http 2, you can use key cdn’s tester and key in your url. The final option we enabled is to optimize css delivery. Basically, this option will generate css needed for content above the fold and asynchronously load other css files.

So they don’t block the rendering process. Now these concepts can be quite technical, so i won’t expand on these, but in general these are page speed, optimization, best practices, all right. Let’s, scroll down to the javascript file section, so first i remove jquery migrate, which is a file that’s been added to wordpress since version 3.6. Now, since there weren’t any issues with jquery for this theme or any plugins, i chose to disable it as there’s, no point in loading an additional script without purpose. Again, we chose to minify js files, as we did with html and css and combined our js files, since there were no conflicts or issues and the last option we enabled is to defer loading of javascript.

This option will basically delay the loading of javascript files, so the most important content, like your html and css, can be delivered to your visitors first and then the js will load, and this will in most cases fix the eliminate, render blocking js issue that you may Have seen in pagespeed insights now it’s, important to note that if you choose to minify, combine and or defer your javascript files, things may break on your site.

So it’s, important to actually test your site’s. Functions before permanently leaving it on all right, let’s. Move on to the media category. Here i’ve chosen to lazy load. All media files, lazy load improves page speed because it defers the loading of images and videos until they’re visible on the screen.

In fact, wordpress 5.5 will lazy load images by default. T necessarily need a plug-in. If you just want this feature, next up is pre-loading. Pre-Loading allows you to define essential resources, so that browsers know the priority of files that should be loaded first, for example, let’s say that your html code looks like this.

Based on this code. The javascript file would need to load first simply because of hierarchy. Of course you could edit the code, but that can get messy and confusing. I have coding knowledge, but if we add another link tag to preload the style sheet, then this would tell browsers to load the css file with a higher priority than the js file, and that’s.

Exactly what this option in wp rocket does for you now. The last thing i want to talk about here is using a cdn and it’s, easiest to understand how these work. If we look at our first example of how devices connect to web servers so again, if the server is in la and a visitor is in las vegas, it probably won’t.

Take very long for the two devices to connect. Seeing us are relatively close in proximity, but what happens when someone from germany, india, australia or singapore tries to connect to the web server? It’s going to take longer and that’s, where cdns can help.

Cdn stands for content delivery network and that’s, exactly what it is. A network of servers located all over the world that delivers content to visitors as fast as possible by using a cdn. You’re, essentially caching, files on multiple servers globally.

Then, when a visitor tries to access your site, it’ll connect them to the one that’s closest creating a faster connection between the user and the content. So if your site attracts a global audience, then it might be worth signing up for a cdn service enabling the option in wp rocket and adding the appropriate c name.

Now there are other free caching plugins that have a lot of these features like auto optimize and w3 total cache. But i personally prefer to pay a small fee for wp rocket, as i’ve had the best results with them and the final step in the site.

Speed, optimization tutorial, is to optimize your images. Now, since we’ve, already added lazy load to images, this will solve a lot of problems. But if you’re using featured images that are above the fold on load, then lazy load, isn’t going to help plus smaller images will save you with storage space.

So the simple solution is to compress your images using lossy or lossless compression, and there are some great plugins that i’ll. Do this for you, like short, pixel and imageify, now, to give you an idea of how much image compression can help take a look at the wordpress media library.

Here you’ll, see that shortpixel has reduced the image sizes by quite a lot, which will help improve page speed. Shortpixel also has a feature that lets you serve images in the webp format, which basically lets you compress images even further, without compromising quality.

By much just go to settings and choose short pixel, then click on the advanced tab from here you’ll. Ve checked this box. So short pixel creates a webp version of your images.

So now that we ve done the three main optimizations for wordpress site speed, let’s, run the page, speed tools and compare them with our original benchmarks. On page speed insights, the page previously scored a 45 on mobile and now has a score of 95.

. It had a desktop score of 79 and now has a near perfect desktop score on pingdom, the page previously loaded in 1.72 seconds with a 1.7 megabyte page size and 63 requests. With a new speed test. You’ll, see there was a significant decrease on all three metrics page.

Size is just over 900 kilobytes load. Time came in at 200, milliseconds and the number of requests have shrunk by nearly 3x. Ll see the same pattern for gt metrics, an improvement across the board.

Finally, i ran a new crawl of the site with ahrefs site on it and, as you can see, every single page loaded in under a second now. These are the steps that work for Joe site and i’ve used it for other sites with success, but remember each wordpress configuration will be different since you might be using a clunkier theme, more resource consuming plugins have inferior hosting or you have tons Of third-party tracking scripts, so if you’re still unhappy with your site, speed after making these optimizations.

Ll likely need more custom work done for you, so you may want to consider removing plugins and scripts switching themes or hiring a developer to make the appropriate fixes so give it a shot. And if you enjoyed this tutorial, then make sure to like share and subscribe for more actionable seo and marketing tutorials, and let me know in the comments if these tips helped you boost your wordpress site speed.

[amazon_auto_links id="2194"] 2194 ) ); ?>

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post