Last updated on
Eliminate Render Blocking CSS

In this Google PageSpeed Experiment, we’re testing W3 Total Cache’s feature to Eliminate Render Blocking CSS to examine its effects on website performance.

17.5 Points

In this test, Eliminating render blocking CSS improved our PageSpeed Score by over 17 points on mobile devices! Check out the documentation to see how to take advantage of this feature on your site!

Upgrade to W3 Total Cache Pro and improve your PageSpeed Scores today!

Audit: Google PageSpeed Score
Before: 53.75
After: 71

Control Website

On our Control website we installed WordPress and the following plugins with a focus on plugins that add interactive features and elements to the site:

  • Accordions Combo
  • Contact Form 7
  • Dracula Dark Mode
  • Post and Page Builder
  • Responsive Accordion And Collapse
  • Responsive Lightbox & Gallery
  • Smart Slider 3
  • Spiffy Calendar
  • TablePress
  • WooCommerce
  • WPB Accordion Menu or Category

Control Website: https://wordpress-speed-test.com/051624_site1/

-94.86% Potential Savings
from Render Blocking
Resources

In this test, moving our CSS to the HTTP body reduced our Potential Savings From Render-Blocking Resources by over 94% loading nearly 2 seconds faster on mobile devices! Check out the documentation to see how to take advantage of this feature on your site!

Upgrade to W3 Total Cache Pro and improve your PageSpeed Scores today!

Audit: Potential Savings From Render-Blocking Resources
Before: 2432.5 ms
After: 125 ms

Experimental Website

With our experimental website, we installed WordPress with the same plugins as our Control Website.

We also installed W3 Total Cache Pro and enabled the option to Eliminate render-blocking CSS by moving it to HTTP body.
Experimental Website: https://wordpress-speed-test.com/051624_site2/

Experimental Website Changes

WordPress Plugins that add interactive elements and styles to your page often increase load times as the site needs to make additional HTTP requests to load these resources. This causes the site to wait for the additional requests to complete before it can start rendering the page.

For example, we used Dracula Dark Mode to add a Dark Mode switch to the page. This means the site has to load the original styles in addition to the styles that will be used for dark mode which effectively doubles the number of style-sheets that need to be requested on each page load.

We used multiple plugins that add accordion sections as these are quite common and while they seem light and simple on the surface, each has its own style-sheet and JavaScript resources in order to function properly. They need these resources in order to show or hide the content within the accordion. These extra resources on their own may not have a significant impact but we used multiple to demonstrate how these simple interactive elements can add up when loading the site, especially on mobile devices.

To address this, on our Experimental Website, we used the Eliminate render-blocking CSS by moving it to the HTTP body option in the Minify advanced settings under the CSS section. What this does is take any minified CSS files and insert their contents directly into the page to prevent making additional requests. This saves on load time by eliminating the need to request these CSS files as their contents will be included directly in the source of the page.

While this has little effect on the desktop scores we consistently saw a significant improvement in mobile scores.

-56.59% LCP Score

In this test, Eliminating render blocking CSS improved our Largest Contentful Paint time by over 56% loading nearly 4 seconds faster on mobile devices! Check out the documentation to see how to take advantage of this feature on your site!

Upgrade to W3 Total Cache Pro and improve your PageSpeed Scores today!

Audit: Largest Contentful Paint
Before: 7s
After: 3.04s

How the test was run

We conducted four tests on each website using Google PageSpeed Insights and averaged all the scores.

Desktop Mobile

Performance

Performance score

Standard siteW3TC OptimizedDifference
84.7584.75 0 0%
No change.

Points per Metrics

First Contentful Paint

Standard siteW3TC OptimizedDifference
9 points10 points +1 points +11.11%

Largest Contentful Paint

Standard siteW3TC OptimizedDifference
14.75 points15.75 points +1 points +6.78%

Total Blocking Time

Standard siteW3TC OptimizedDifference
30 points30 points 0 points 0%
No change.

Cumulative Layout Shift

Standard siteW3TC OptimizedDifference
25 points25 points 0 points 0%
No change.

Speed Index

Standard siteW3TC OptimizedDifference
6.75 points4 points -2.75 points -40.74%

Metrics

First Contentful Paint

Standard siteW3TC OptimizedDifference
0.9 s0.73 s -0.18 s -19.44%

Largest Contentful Paint

Standard siteW3TC OptimizedDifference
2.18 s1.98 s -0.2 s -9.2%

Total Blocking Time

Standard siteW3TC OptimizedDifference
5 ms17.5 ms +12.5 ms +250%

Cumulative Layout Shift

Standard siteW3TC OptimizedDifference
0.010.01 +0 +9.09%
No change.

Speed Index

Standard siteW3TC OptimizedDifference
1.95 s2.55 s +0.6 s +30.77%

Diagnostics

Largest Contentful Paint element

Standard siteW3TC OptimizedDifference
2152.5 ms1995 ms -157.5 ms -7.32%

Potential savings from render-blocking resources

Standard siteW3TC OptimizedDifference
465 ms15 ms -450 ms -96.77%

Potential savings by serving images in next-gen format

Standard siteW3TC OptimizedDifference
927 KiB934.25 KiB +7.25 KiB +0.78%

Time third-party code blocked the main thread for

Standard siteW3TC OptimizedDifference
0 ms0 ms 0 ms
No change.

Potential savings from unused CSS

Standard siteW3TC OptimizedDifference
145 KiB182 KiB +37 KiB +25.52%

Potential savings from unused JavaScript

Standard siteW3TC OptimizedDifference
77 KiB218 KiB +141 KiB +183.12%

Potential savings if Minifying CSS

Standard siteW3TC Optimized
Passed auditPassed audit

# of static assets without an effecient cache policy

Standard siteW3TC OptimizedDifference
9635.5 -60.5 -63.02%

JavaScript execution time

Standard siteW3TC OptimizedDifference
0.2 s0.2 s 0 s 0%
No change.

Main-thread work

Standard siteW3TC OptimizedDifference
1.251.15 -0.1 -8%

# of long main-thread tasks

Standard siteW3TC OptimizedDifference
33.25 +0.25 +8.33%

Initial server response time

Standard siteW3TC OptimizedDifference
1302.5 ms2612.5 ms +1310 ms +100.58%

# of large layout shifts

Standard siteW3TC OptimizedDifference
1.251 -0.25 -20%

# of user timings

Standard siteW3TC Optimized
Passed auditPassed audit

# of animations found

Standard siteW3TC Optimized
Passed auditPassed audit

Network payload

Standard siteW3TC OptimizedDifference
2802 KiB2857 KiB +55 KiB +1.96%

DOM size

Standard siteW3TC OptimizedDifference
664626.5 -37.5 -5.65%

# of chains found

Standard siteW3TC OptimizedDifference
694 -65 -94.2%

Defer offscreen images

Standard siteW3TC OptimizedDifference
00 0
No change.

Minify JavaScript

Standard siteW3TC Optimized
6 KiBPassed audit

Properly size images

Standard siteW3TC OptimizedDifference
327 KiB327 KiB 0 KiB 0%
No change.

Efficiently encode images

Standard siteW3TC OptimizedDifference
00 0
No change.

Enable text compression

Standard siteW3TC Optimized
Passed auditPassed audit

Preconnect to required origins

Standard siteW3TC Optimized
Passed auditPassed audit

Preload key requests

Standard siteW3TC OptimizedDifference
00 0
No change.

Preload Largest Contentful Paint image

Standard siteW3TC Optimized
Passed auditPassed audit

Avoid multiple page redirects

Standard siteW3TC Optimized
Passed auditPassed audit

Use video formats for animated content

Standard siteW3TC Optimized
Passed auditPassed audit

Remove duplicate modules in JavaScript bundles

Standard siteW3TC Optimized
Passed auditPassed audit

Avoid serving legacy JavaScript to modern browsers

Standard siteW3TC OptimizedDifference
00 0
No change.

Largest Contentful Paint image was not lazily loaded

Standard siteW3TC Optimized
Passed auditPassed audit

Avoids document.write()

Standard siteW3TC Optimized
Passed auditPassed audit

Image elements have explicit width and height

Standard siteW3TC OptimizedDifference
00 0
No change.

Has a <meta name="viewport"> tag with width or initial-scale

Standard siteW3TC Optimized
Passed auditPassed audit

Uses passive listeners to improve scrolling performance

Standard siteW3TC Optimized
Passed audit0

All text remains visible during webfont loads

Standard siteW3TC Optimized
Passed auditPassed audit

W3 Total Cache

You haven't seen fast until you've tried PRO

   Full Site CDN + Additional Caching Options
   Advanced Caching Statistics, Purge Logs and More

Everything you need to scale your WordPress Website and improve your PageSpeed.

Leave a Reply

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

W3 Total Cache logo

We Can Help Optimize Your Website

Optimize your site’s performance with our one-time premium services or ongoing monthly VIP support. View services

Got a Minute?

Your feedback helps us improve. Complete our customer survey now.

Partners

Bunny CDN Logo