The speed of a website is one of the most important factors in attracting and retaining visitors. If all other factors are equal, a faster site is much more likely to attract users. That’s because search engines take into account the speed of the site to sort the results. So if you want to leave your competitors in the dust in SEO, make the site speed a priority.
To understand this suggestion, we need to look at the ranking of Google’s criteria for sites on page Speed Insights. Ten rules of speed set by Google , and failure in one of them can result in a reduction of points.
The Render-blocking JS and CSS content is one of those rules. Typically, JS and CSS scripts force browsers to delay the reading of HTML pages. Of course, this is not a problem. In fact, it’s exactly what you want; in any way if you want content that has no style.
Render-blocking JS and CSS, include those scripts that introduce latency in content but are not used as content. ATF content (above-the-fold) refers to the part of the Web page that is visible when the page is loaded; Any part of the page that you have to scroll down to achieve, not ATF. So with that suggestion, Google is reporting that there JS and CSS scripts on this web page that are slowing down unnecessarily, as part of the page they affect even still observable to the user.
In this tutorial WordPress , we will use the Google PageSpeed Insights to identify scripts of rendering blocks. Then we show how to fix this problem for your WordPress site using three different methods. In addition to this guide, you should also look for other ways to speed up your WordPress site to have a great user experience.
Before starting this tutorial, you will have access to the WordPress admin area.
The first step to correct the rendering block tests the speed of your website using Google PageSpeed Insights . Just visit the page, and in the entry field, paste the URL of your website. Click Analyze to get a report of your website. Most brand sites 50-70; this should serve as a reference for your score. Besides the score, Google also provides suggestions to improve the performance of your site.
To show how to fix the rendering blocking error, we will use a real site. In the screenshot above, you can see that there are currently some JS and CSS blocking capabilities.
You must have one important thing in mind – your goal here should not be to score 100 points in PageSpeed Insights. Instead, you should try to improve to get a good score, without sacrificing user experience. If there are scripts for their core WordPress site, you should not remove them just to get a score slightly higher in PageSpeed Insights. The rules that Google ranks their websites are merely guidelines, and should be taken as such.
Now that you are aware of rendering lock code on your site, you have a few options on how to fix it. We recommend to download a plugin that facilitates your life to take care of this problem. One of our favorites is the Install and activate it. Once you set it, follow these steps:
If you want to have more control over the content, check out how to do the optimization . This plugin was designed specifically for ATF content and works with other popular plugins such as W3 Total Cache and Autoptimize.
In most cases this is enough to correct the renderings (depending on your theme and the plugin activation).
To find out if you are not one of those people, turn your site via the PageSpeed Insights.
As you can see from the screenshot above, the Autoptimize will make a JS resource block and a CSS resource block.
If further deepen optimization, return to Settings -> Autoptimize . Click the Show advanced settings. From there, check the options. Then adds JS online and add CSS online. Finish by clicking Save Changes and empty the cache . To see if it worked, revisit PageSpeed Insights.
Another popular plugin that you might find useful for correcting the rendering lock for your WordPress site is the activate the plugin . You will find your options in the section Settings -> Acceleration Pack in the WordPress admin area.
For the CSS rendering block, go to the “Need more speed?” Here you will find additional settings relating to: CSS optimization; Minify CSS; move CSS styles in line for the footer and CSS load asynchronously.
You can try these optimizations to find a middle ground, and allows everyone to upload your site faster, but may also have unwanted Flash content nondestructive artifacts (FOUC). This happens when the browser loads the web page without waiting for the style sheet of the load, causing a momentary flash of any page style. To ensure that the rendering block is no longer a problem, check the Google PageSpeed Insights again.
If any of the above fixes broke the functionality of your site in some way, be sure to follow the rendering lock code. Remember, from now on your site’s speed will only get better. You should not compromise the basic functionality. So, if there is still some rendering hanging lock code on your site, do not worry about it.
Found this content useful? We have a lot more tutorials for you, click here to read . Of course, all about cheap web hosting and more details about our plans, they are available on our website.