How to Eliminate Render-Blocking Issues With Hummingbird for WordPress (2024)

Have you ever run your website through Google Pagespeed Insights tool and got the cryptic message:“Eliminate render-blocking JavaScript and CSS in above-the-fold content”?

Updated: 08/16/2018 Hummingbird includes page, browser, RSS and Gravatar caching, full Multisite support, all new developer tools and a new streamlined interface.

Since Hummingbird was launched we’ve added sooo much new stuff. Head over to the project page to check out all the new features! Check out Hummingbird

If the answer is “yes,” the good news is you’re not alone. And there’s an easy way to fix it with our Hummingbird performance and optimization plugin.

An important part of a good user experience online is a super fast website, because when your website loads fast your conversion rate goes up. But many website owners sacrifice site speed for eye-candy or a great new functionality thinking that what they are doing is in the best interest of their visitors.Unfortunately, a good majority of website visitors care more about the time it takes for your website to load, than any of those extra bells and whistles.

To make matters even more interesting, Google has stressed on more than one occasion that speed is a ranking factor when it comes to SEO. It was first brought up in April of 2010 when both Google officially announced it on their blogand the company’s Matt Cutts from the webspam team gave further explanation of that decision on his blog.

Eliminate your render-blocking issues with Hummingbird and supercharge your pagespeed – free for WPMU DEV membersGet Your Site Humming

A slow website equals poor user experience. And Google is very much interested in delivering an excellent user experience. To be clear,this doesn’t mean your website won’t show up in search engine results at all; rather, it just means that Google might crawl your site slower which will result in a limited number of URLs that get crawled from your site.

So in this article, I’m going to explain what Google PageSpeed’s render blocking message means, how to deal with render blocking issues, and how Hummingbird can help you fix those problems.

How to Eliminate Render-Blocking Issues With Hummingbird for WordPress (1)

So, How Slow is Too Slow?

According to John Mueller’s answer in a Google Webmaster Help thread, anything over 2 seconds is considered too slow. And by two seconds, he means that if your page displays nothing – a blank screen – for over 2 seconds, you’re in trouble and readers will leave your site in droves. It’s okay if your page continues to load with slower data after 2 seconds.

This is further backed up by research done by Gomez.com and Akamai.com whose combined results foundthat 47% of consumers expect a web page to load in 2 seconds or less while 40% of people abandon a website that takes more than 3 seconds to load.

These results show us that website speed is indeed crucial, not only in the eyes of Google but in the eyes of your typical website visitor, too.

If you have no idea how fast (or how slow) your website loads, a good place to start is Pingdom Tools. The service will analyze your site and tell you how much time it takes to load.

If you want to dive deeper and see how you score according to Google, find out what is slowing your site down, and what you can do about it, then look no further than Google Page Speed Insights.

Usually, you want your score to be 90 and up. However, without doing anything to optimize your page speed, the fact is your score will be much, much lower than that. More often than not, you will find that the biggest culprits for a low score are poorly compressed images and render blocking issues.

Poorly compressed images are pretty self-explanatory. But what are render blocking issues exactly?

Common Render Blocking Issues

The most common render-blocking issues, especially when it comes to WordPress, are JavaScript and CSS, which load in above-the-fold content or in the area of the website that you see before you have to start scrolling down. Unfortunately, they are also a part of the critical render path, which means you can’t just leave them out completely and expect your site to display and function properly.

Let me explain what that means.

Usually, a web page consists of an HTML file, which holds the structure of the web page. That file contains links to CSS files, which are responsible for adding visual styles, and JavaScript files, which add little extras to a web page, likeanimations, a scroll-triggered pop-up or fly-in, and so forth.

The critical render path is the series of events that must take place to render (display) the initial view of a web page and the optimizing of these events leads to significantly faster web pages.

When you understand how the critical rendering path works, you can properly apply the fixes necessary to make any web page load fast.

The most basic critical rendering path looks like this:

  1. The browser downloads the HTML file
  2. The browser reads the HTML and sees that there are three additional files: a CSS file, a javascript file, and an image
  3. The browser first starts downloading the image
  4. The browser realizes it can’t display the webpage without first getting the CSS and JavaScript
  5. The browser downloads the CSS file and reads it to make sure nothing else is being called
  6. The browser realizes it still can’t display the webpage until it has the JavaScript
  7. The browser downloads the JavaScript file and reads it to make sure nothing else is being called
  8. The browser can finally display the web page

In essence, this means that before anything on your website can be displayed, the browser has to load and read each and every one of your CSS and JavaScript files. Until that happens, your visitors are staring at a blank screen.

Now, imagine what a critical rendering path looks like in a website that has several CSS files, JavaScript files, images, social media buttons, several audio files, attachments like PDF files, and the list goes on.

It’s easy to see how things can get pretty messy pretty quickly. Especially in the case of WordPress where it’s all too common to have multiple CSS and JavaScript files in your theme. If you add in the numerous plugins many people tend to install, things get even more complicated and messy, which leads to slow-loading websites.

All of this means that when Google talks about page speed and its importance as a ranking factor, they are referring tohow long your users have to wait before they start seeing content and how quickly they can start interacting with it.

Your primary concern when it comes to page speed optimization should be reducing the time it takes for your users to be able to view your content and interact with it. This means you should do whatever you can to optimize the critical rendering path. Let’s examine a few ways youcan fix those issues.

Render Blocking CSS

CSS files are what make up how your website looks. It’s what defines the colors, the fonts, and the layout of your web page. The more CSS files you have and the bigger those files are, the longer it takes for the browser to read them and display the website.

There are a few ways of dealing with render blocking CSS:

  1. Properly calling your CSS files
  2. Lessen the number of CSS files in the critical path
  3. Use less CSS overall

1. How to Properly Call CSS

There are two ways of calling CSS you should absolutely avoid: @import and improperly labeled conditional CSS files.

The @import method of calling CSS will be near the top of your regular stylesheet and look something like this:

@import url("style.css")

This means the browser first has to go find the imported file before it can read the rest of your CSS file which will further delay the time it takes to display your web page.

Instead, it is better to just copy the contents of the imported file and paste it into the original stylesheet; or delete that line completely from your original stylesheet and include the imported CSS file in your HTML file by using the following line of code:

<link rel="style.css" href="style.css">

Make sure to replace “style.css” with the location and name of your CSS file.

Conditional CSS refers to CSS files thataren’t necessary for the web page to display before a certain condition is met, i.e. when you go to print the web page or a stylesheet that is used when a page is a certain width. When those files aren’t properly labeled, it means the browser will load allthe stylesheets before the web page displays.

How to Eliminate Render-Blocking Issues With Hummingbird for WordPress (2)

FREE EBOOK
Your step-by-step roadmap to a profitable web dev business. From landing more clients to scaling like crazy.

How to Eliminate Render-Blocking Issues With Hummingbird for WordPress (3)

FREE EBOOK
Plan, build, and launch your next WP site without a hitch. Our checklist makes the process easy and repeatable.

Here’s an example. A typical CSS file is called as shown below:

<link href="style.css" rel="stylesheet">

This code basically tells the browser that this file is a link to your stylesheet.

Any CSS file called like this will take priority over displaying anything on your web page. In the case of a CSS file thatdoesn’t have to load before the page is rendered, it should be called like this:

<link href="print.css" rel="stylesheet" media="print">

This translates to “this is a link to my CSS file which is meant for printing only.” In this case, the browser understands that this particular file is notnecessary for the page to display properly and it will place a lower priority on that file. It will still download it, but it won’t interfere with the rendering of the web page.

The same thing happens when you have CSS files thatare specific to displaying a web page across various screen widths.

2. Use Fewer CSS files in the Critical Path

The best way to use less CSS files is to combine those files. In essence, this means copying the contents of one CSS file and pasting it into another. Once that is done, you have to remove the call to the extra CSS files from your HTML file.

3. Use Less CSS Overall

The last way of dealing with render blocking CSS is not the most practical solution, even though it sounds easy. In most cases, WordPress themes that claim to be highly customizable, come with additional CSS files which aren’t really necessary. The reason this is not the most practical solution is because more than likely you either had a theme custom designed for your website or you bought it from a theme marketplace. In that case, the only solution you have is to contact the theme designer and see if they would be willing to help you out.

Render Blocking JavaScript

When it comes to JavaScript, you need to know how many JavaScript files your website is loading and where the calls for those files are placed. The easiest way to do this is to use the Google PageSpeed Insights tool. It will tell you the names of the exact files that are blocking a particular page. Once you know which files are causing the problem, you can work on implementing a solution.

How to Remove Render-Blocking JavaScripts

The most common culprit is jQuery, which is a JavaScript framework that is used on a large percentage of web pages. It’s only one file but it is rather large.

Most often, it is used to add extra functionality to your websites like fading an image in or out, displaying an email optin form when the visitor goes to leave your website, and other similar features. Realistically speaking, there is no reason for that file to load before the web page, yet a good majority of websites are guilty of it.

To fix this issue, you need to change where the call for jQuery is made in the HTML of your website. A partial solution is to place the call for it in the footer of your website, along with the calls for all the other JavaScript files, like Google Analytics, or social media widgets like your Facebook Like Box, or Google+ Profile Badge. The reason this is only a partial solution is because that still doesn’t let the browser load the web page first and JavaScript files second. Ultimately, that method will still impact your website speed.

A much better solution would be to defer JavaScript completely. This will remove it completely from the critical rendering path and will play a huge role in increasingpage speed.

You can do this by adding a few lines of JavaScript code to your HTML ,which creates an “onload” event. That event will call an external JavaScript file, which will take effect only after the web page has loaded.

Taking all of this into consideration, sometimes it may not be feasible for you to do all of those optimization tweaks yourself. In those cases, using a plugin to help you with resolving them is the most natural course of action.

That’s why we built Hummingbird.

How to Eliminate Render-Blocking Issues With Hummingbird for WordPress (4)

Eliminate Render Blocking Issues with Hummingbird

Hummingbird is a performance optimization plugin with agoal ofhelping you optimize your website and make it load faster. Its focus is on the same components of your website that Google Pagespeed Insights inspects but instead of cryptic messages thatsend you on a search to decode their meaning, Hummingbird offers the solution right there in your dashboard.

Like the Pagespeed Insights tool, it shows you how you score on a scale to 100 then gives you a breakdown of what you need to improve. The suggestions are written in clear and easy-to-understand language, along with the list of specific files you need to edit or move to the footer of your site, as well as the images you need to compress.

In short, it eliminates the need to write down and manually find the files you need to edit. With Hummingbird, all the changes are done with a click of a button. You don’t have to worry about doing irreversible changes to your site. If you’re not happy, or a particular optimization step leaves your site unusable, you can always undo the changes.

How to Eliminate Render Blocking Issues with Hummingbird

When it comes to render blocking issues and WordPress, the best practice is to load as many scripts as possible in the footer of your site, so slow-loading scripts won’t prevent vital parts of your site from loading quickly.

However, not all plugins and themes follow this idea.

Hummingbird lets you move script calls from the header to the footer with a click of a button. Although some caching plugins give you the option to move the render blocking files to the footer, more often than not you have to manually locate the files yourself.

Hummingbird lets you see which files are causing issues – it names the exact files – so you can then decide whether you want to move them to the footer, header, or leave them in their original position. You can also choose to combine and minify them to improve site performance.

All you need to do is go to Hummingbird > Minification in the backend of your site and you’ll see the screen below:

How to Eliminate Render-Blocking Issues With Hummingbird for WordPress (5)

Then all you need to do is scroll through the file names on the left and choose where you would like to re-position each file. Don’t forget to click “Save” when you’re done.

As is always the case with WordPress, make sure to backup your site before playing with this feature. After each optimization, be sure to test your site and see if every element is loading as it should. The reason behind this is that sometimes WordPress themes and plugins don’t follow WordPress standards, which can lead to certain elements being broken when JavaScript is minified. However, every change you make with Hummingbird is easily reversed with the “Clear” button in the Hummingbird dashboard.

Further Optimizing Your Site with Hummingbird

Eliminating render blocking issues is just the tip of the iceberg, however. Hummingbird can also help you with minification, browser caching, gzip compression, and even be configured to monitor your site’s uptime. Let’s take a look at each of these features briefly before we go:

  • Minification.Minification does what the name implies – it minifies your HTML, CSS, and Javascript files by removing white space, carriage returns, and unneeded characters. This results in smaller files thathelp your site load faster.
  • Browser Caching.Thiscreates cached versions of your static content, which means when a visitor refreshes or lands on the page again, the browser serves up a cached version instead of reloading everything from scratch.
  • GZIP Compression.GZIP uses an algorithm to create code where large strings of data can be stored as a single bit, effectively making your pages and stylesheets much smaller. It’s a fairly common practice used to decreasesite load time.
  • Uptime Monitoring.With Uptime monitoring activated, you will be able to tell not only if your site is down but how fast it loads. It will email you each time your site goes down, and again when your site is back online.

Wrapping Up

Website speed is crucial. Not only does it affect your visitors’ user experience, it can also a deciding factor in whether or not a visitorreturns to your site or makesa purchase. The most common issues happen when browsers have to deal with too many CSS and JavaScript files, which causes a delay in displaying your website. Render blocking issues must be fixed if you want toimprove user experience and make your site load faster. Now thanks toHummingbird, you can easily fix render blocking issues and implement other fixes to significantly improve your website’s speed. Which we think is pretty cool.

How fast is your website? How did you handle render-blocking issues? Let us know in the comments and don’t forget to tell us if you took Hummingbird for a test drive.

Tags:

  • hummingbird
  • performance
How to Eliminate Render-Blocking Issues With Hummingbird for WordPress (2024)

FAQs

How to Eliminate Render-Blocking Issues With Hummingbird for WordPress? ›

A much better solution would be to defer JavaScript completely. This will remove it completely from the critical rendering path and will play a huge role in increasing page speed. You can do this by adding a few lines of JavaScript code to your HTML ,which creates an “onload” event.

How do I fix eliminate render-blocking resources in WordPress? ›

Below, I have explained the best practices to eliminate render-blocking resources in WordPress:
  1. Use a Caching Plugin: ...
  2. Minimize CSS and JavaScript Files: ...
  3. Load JavaScript Asynchronously: ...
  4. Defer JavaScript Execution: ...
  5. Inline Critical CSS: ...
  6. Use a Content Delivery Network (CDN): ...
  7. Optimize Images: ...
  8. Lazy Load Images and Videos:
Oct 4, 2023

How do I stop render-blocking? ›

To tackle render-blocking resources, prioritize above-the-fold content, defer non-essential JavaScript, use "async" for non-impactful scripts, minimize and compress CSS/JavaScript, leverage browser caching, and utilize Content Delivery Networks (CDNs).

What is the best plugin to eliminate render-blocking resources in WordPress? ›

Jetpack Boost enables you to optimize your site from your WordPress dashboard. With this plugin, you can optimize CSS loading, defer non-essential JavaScript, and implement lazy loading in a few simple steps. This is one of the easiest ways to eliminate render-blocking resources in WordPress.

How to eliminate render-blocking resources with WP Rocket? ›

The Load JavaScript deferred feature in WP Rocket should help eliminate the render-blocking JavaScript on your website by adding the “defer” tag in each script tag. You'll find this feature under Dashboard → WP Rocket → Settings → File Optimization → Load JavaScript Deferred.

What causes render blocking? ›

Render-blocking resources are scripts, stylesheets, and HTML imports that block or delay the browser from rendering page content to the screen. These resources delay the First Paint - the time at which your browser renders something (i.e., background colours, borders, text or images) for the first time.

Why eliminate render blocking resources? ›

If you reduce the number of render-blocking resources, you can shorten the critical rendering path and reduce page load times, thus improving the user experience and search engine optimization.

How to check render blocking? ›

First, you have to identify what's critical and what's not. You can use the Chrome DevTools (Coverage tab) to identify non-critical CSS and JS. Once you've identified critical code, you can try the below methods to eliminate render-blocking resources: inline critical JS within a script tag in your HTML document.

How to see render blocking resources? ›

“Render-blocking resources” can also be translated as “resources that block the first paint of your page”, so you should look for the resources that load before the FP/FCP event. You can do that in the Performance tab. Clicking on the “reload” button will start the profiler and automatically reload the page for you.

How to reduce total blocking time on WordPress? ›

How to Reduce Total Blocking Time in WordPress
  1. Optimizing CSS and JavaScript. ...
  2. Minimizing Render-Blocking Resources. ...
  3. Utilizing Caching Techniques. ...
  4. Implementing Lazy Loading. ...
  5. Leveraging Content Delivery Networks (CDNs) ...
  6. Optimizing Images. ...
  7. Delay JS. ...
  8. Prefetch DNS Requests.
Apr 2, 2024

How do I clean my WordPress plugins? ›

Alternatively, log in to your WordPress dashboard and select the "Appearance" or “Plugins” options for inactive themes and plugins, respectively. From there, you can select and delete them (in the example below, we're deleting an inactive WordPress theme).

How do I get rid of render blocking Elementor? ›

First, open your WordPress dashboard, and go to “Elementor.” From there, select “Settings” and then “Experiments.” There, you'll find the options to load fonts and CSS directly, turn on non-render-blocking and also improve asset loading. Finally, turn all of them to “Active,” and that's it!

What is the user blocker plugin in WordPress? ›

Lock User Account plugin provides functionality to lock WordPress registered user accounts in very smart way. To block users from admin side except admin users for specific day,time, and date or permanently. Block any user from viewing your profile page or report any user to admin.

Are fonts render blocking? ›

By default, the browser blocks the rendering of any text that uses a web font until the it's downloaded. You can adjust the browser's text rendering behavior, and configure what text should be shown—or not shown—until the web font has fully loaded using the font-display CSS property.

What is render blocking in SEO? ›

“Render blocking resources” refers to web page resources, such as CSS and JavaScript files. These resources can block web page rendering if certain conditions are met: If the <script> tag is in the <head> of the HTML document AND does not have a defer or async attribute.

How do I optimize my website using WP Rocket? ›

WP Rocket Options and Optimal Settings
  1. Dashboard. The Dashboard tab on WP Rocket's admin panel is mostly informative. ...
  2. Cache tab. In the Cache tab, you can enable caching for mobile users (ON by default). ...
  3. File optimization tab. ...
  4. Media tab. ...
  5. Preload tab. ...
  6. Advanced rules. ...
  7. Database. ...
  8. CDN tab.
Sep 14, 2023

How to fix broken internal JavaScript and CSS files in WordPress? ›

  1. Debugging JavaScript and CSS can be a game of wits, but don't sweat it. ...
  2. -Kick things off by using your browser's Developer Tools. ...
  3. -Next up is linting. ...
  4. -Don't forget to check for filename errors, path issues and ensure proper syntax. ...
  5. -Remember, CSS and JavaScript files are loaded sequentially.
Mar 8, 2024

How do I disable block plugins in WordPress? ›

How can we disable gutenberg blocks in for WordPress sites ?
  1. Open a post for editing.
  2. Click the vertical three dots icon on top right of the editor.
  3. Click Preferences (at the bottom)
  4. Click Blocks.
  5. Uncheck the Custom HTML block.

How to eliminate render blocking resources in Elementor? ›

To optimize Elementor-generated CSS, and avoid render-blocking issues, you can use plugins like WP Rocket or Autoptimize to minify and combine CSS files. You can inline critical CSS, use asynchronous or deferred loading of CSS files, and remove unused CSS and JavaScript.

Top Articles
Latest Posts
Article information

Author: Laurine Ryan

Last Updated:

Views: 5886

Rating: 4.7 / 5 (57 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Laurine Ryan

Birthday: 1994-12-23

Address: Suite 751 871 Lissette Throughway, West Kittie, NH 41603

Phone: +2366831109631

Job: Sales Producer

Hobby: Creative writing, Motor sports, Do it yourself, Skateboarding, Coffee roasting, Calligraphy, Stand-up comedy

Introduction: My name is Laurine Ryan, I am a adorable, fair, graceful, spotless, gorgeous, homely, cooperative person who loves writing and wants to share my knowledge and understanding with you.