Critical CSS in WordPress (2026): Which Plugin Generates It and What It Did to FCP

Critical CSS in WordPress: xSpeed Cache Pro Enable Critical CSS setting, FCP 1.1 s to 0.9 s

Disclosure: some links in this article (WP Rocket and FlyingPress) are affiliate links; read our affiliate disclosure. WPDeveloper gave us an xSpeed Cache Pro license for testing; they had no input into the results.

Critical CSS is the small part of your stylesheet that a page’s first screen needs. A plugin inlines those rules in the <head> and loads the full stylesheets later, so the visible part paints sooner. WordPress has no built-in option; plugins that do it include xSpeed Cache Pro, Jetpack Boost, NitroPack, WP Rocket, LiteSpeed Cache and Autoptimize (paid add-on).

I turned on critical CSS on my own Nginx test page, on top of page caching and Delay JavaScript, and measured it. With xSpeed Cache Pro, First Contentful Paint went from 1.1 s to 0.9 s and LCP from 1.4 s to 1.2 s (PageSpeed mobile stayed at 100). When I then added Remove Unused CSS on top, LCP got worse, 1.7 s. Below: which critical CSS WordPress plugins are free or paid, how each one does it, the numbers, and when critical CSS is not worth the trouble.

Tested: xSpeed Cache 1.4.7 + Pro 1.3.8, Jetpack Boost 4.8.2 (free), NitroPack 1.20.4 (free plan), FlyingPress 5.6.7 and WP Rocket 3.24 on the same test page: WordPress 7.1.4, Kadence theme, Nginx on an aaPanel VPS in Hong Kong, Cloudflare proxied. PageSpeed Insights mobile (middle of three runs) and Chrome DevTools from Dhaka, November 8-12, 2026. Tested by Dolon Bepari. Method: how we test cache plugins.

What critical CSS is (and what it is not)

A browser won’t paint anything until it has downloaded and parsed the CSS files in the <head>, because they block rendering. Critical CSS fixes that by splitting the work: the few kilobytes needed above the fold are inlined into the HTML, and the full stylesheets load without blocking. Google’s web.dev guide suggests keeping that above-the-fold CSS under about 14 KB compressed, so it fits in the first round trip from the server.

It is not the same as Remove Unused CSS. Critical CSS keeps all your stylesheets and only changes when they load. Remove Unused CSS deletes the rules a page doesn’t use, so less CSS loads at all. They solve overlapping problems, which is why some plugins let you use only one of them per page (more on that below). For the other technique, see my remove unused CSS test.

Does critical CSS help? My before and after

Yes, a little, on a page that is already light. The cleanest test I have is xSpeed Cache Pro, because I turned features on one at a time and every state kept the ones before it. So the change below is what critical CSS added on top of page cache, the Nginx snippet, Turbo Render, Preloader, Redis and Delay JavaScript, not what it would do alone:

State (cumulative)PageSpeed mobileFCPLCPSpeed IndexRequests / weight
+ Delay JavaScript (before)1001.1 s1.4 s——
+ Critical CSS (Unused CSS off)1000.9 s1.2 s0.9 s17 req, 154 kB
+ Remove Unused CSS on top1000.9 s1.7 s0.9 s13 req, 159 kB
Critical CSS WordPress test: PageSpeed mobile 100 with xSpeed Critical CSS, FCP 0.9 s and LCP 1.2 s

Two things stand out. First, the score was already 100, so the gain shows up in the timings, not the score: first paint about 0.2 s sooner. On a heavier theme with large render-blocking stylesheets, the difference would be bigger; on a page like mine it is small. Second, more CSS optimization is not automatically better. Adding Remove Unused CSS cut requests from 17 to 13 but made LCP 0.5 s slower in my test.

For scale: with no cache plugin at all the same test site scored 95 to 96 in PageSpeed with an LCP of 2.6 to 2.8 s. Most of the journey from there to 100 came from page caching and deferring scripts, not from critical CSS. Page caching and delayed scripts matter for LCP too, and my guide to improving LCP in WordPress shows where each one fits.

Do you need critical CSS? How to check

Run PageSpeed Insights on mobile and look for the render-blocking requests insight: if it lists your theme’s CSS files with real savings, critical CSS can help. Then open Chrome DevTools > Coverage, filter by CSS and reload. On my test page with FlyingPress’s basic setup (Remove Unused CSS off), only 38.7 of 204 kB of CSS was used (19%). A big unused share points to removing unused CSS; a long white screen before anything appears points to critical CSS.

Critical CSS WordPress plugins compared

PluginCritical CSSFree or paidHow it’s generatedMy test
xSpeed Cache ProYes (Enable Critical CSS)ProRendering service or capture in your browser, per pageTested: FCP 1.1 → 0.9 s
Jetpack BoostYes (Optimize Critical CSS Loading)Free = manual regenerate; paid = automaticGenerated in your browser from the dashboardTested: generated 5 files after a fix
NitroPackYes (Generate critical CSS)Included on the free planNitroPack’s cloud, per pageTested: inline critical CSS in the source
WP RocketYes (Load CSS asynchronously)PaidWP Rocket’s service, per post type; can’t run with Remove Unused CSSNot tested (I tested its Remove Unused CSS)
FlyingPressNo separate option; Remove Unused CSS inlines used CSSPaidIts own service, per pageTested as used CSS
LiteSpeed CacheYes (Load CSS Asynchronously, via QUIC.cloud)Free monthly quota, then paidQUIC.cloud, per URLNot tested
AutoptimizeYes, with a criticalcss.com keyPlugin free; criticalcss.com paidcriticalcss.com API ($10/month for one domain)Not tested
PerfmattersNo separate option; Remove Unused CSS inlines used CSSPaidIts own processingNot tested

“Tested” means I ran the plugin on my test page. Where I didn’t, the row comes from the plugin’s own documentation, and I give no numbers for it.

How to add critical CSS with each plugin

xSpeed Cache Pro

Go to CSS & JavaScript and turn on Enable Critical CSS; keep Defer remaining stylesheets on. You can capture the fold in your own browser (Capture in browser) or let the Pro rendering service do it (Generate on server). Mine was generated on the server, the test page’s critical CSS came to 10.0 KB, and xSpeed also built it on its own for other pages I visited. Note the line under the toggle: Critical CSS skips pages that Unused CSS already handles. Full results in my xSpeed Cache review.

xSpeed Cache Pro Critical CSS enabled with Defer remaining stylesheets

Jetpack Boost (free, but manual)

In Jetpack > Boost, turn on Optimize Critical CSS Loading. On the free plan it is manual: it is generated in your browser while you keep the Boost page open, and you have to press Regenerate after every theme or layout change (the paid plan, $239.40 a year when I checked on November 12, 2026, regenerates automatically).

On my test site the toggle was already on after Start for free, but nothing was generated until I ran it, and the first run reported that one file could not be generated, because Concatenate CSS had broken my stylesheets. Once that was fixed, it generated five files. Boost’s own mobile score went from 89 to 92 with all its free modules on, so I can’t credit critical CSS alone with a number. More in my Jetpack Boost review.

Jetpack Boost critical CSS: 5 files generated after the broken CSS was fixed

NitroPack (free plan)

NitroPack’s free plan includes Generate critical CSS (NitroPack pricing), and it was already working in the Strong mode its onboarding switched on: the page source showed NitroPack’s critical CSS markers. There is nothing to configure. I can’t give you a clean before/after for it, because NitroPack changes everything at once and my single PageSpeed run (89, possibly taken while it was still re-optimizing) isn’t a fair measure of one feature. See my NitroPack review for the full test.

Page source with NitroPack critical CSS inlined

FlyingPress (used CSS instead of critical CSS)

FlyingPress has no setting called critical CSS. Its Remove Unused CSS does the same job differently: it inlines the CSS each page actually uses in a <style id="flying-press-css"> block and loads the full stylesheets only when the browser is idle (FlyingPress docs). It was on by default when I installed it. With Delay JavaScript already on, turning Remove Unused CSS on as well took LCP from 1.7 s to 1.2 s (PageSpeed 100 both times). Compared with the basic setup, where both were off, the page went from 141 kB in 21 requests to 119 kB in 16. Settings: FlyingPress settings.

WP Rocket

In WP Rocket, critical CSS comes from File Optimization > Optimize CSS delivery > Load CSS asynchronously. WP Rocket’s service builds it per post type (from the first post of each type), and it can’t run at the same time as Remove Unused CSS, which WP Rocket now recommends first (WP Rocket docs). After a design change, use Regenerate Critical Path CSS in the admin bar. I tested the other option, Remove Unused CSS: LCP went from 1.7 s to 1.1 s on my page (details in WP Rocket settings).

LiteSpeed Cache and Autoptimize (not tested)

LiteSpeed Cache generates critical CSS through QUIC.cloud when you turn on Load CSS Asynchronously (off by default). Unlike its page cache, this page-optimization feature works on any web server, but it uses QUIC.cloud’s monthly free quota, after which it is paid (LiteSpeed docs). Autoptimize has a Critical CSS tab that needs a paid criticalcss.com key; without one you can only paste a single site-wide block into Inline & defer CSS yourself (criticalcss.com FAQ). I didn’t test either, so no numbers here.

Critical CSS vs Remove Unused CSS: use one or both?

Pick one per page and test it. They overlap: once unused CSS is removed, what’s left is already small, and some plugins skip critical CSS on those pages (xSpeed says so in its settings). In my xSpeed test, critical CSS without Remove Unused CSS gave the best LCP of any xSpeed state (1.2 s); adding Remove Unused CSS on top reduced requests but pushed LCP to 1.7 s.

With FlyingPress, whose Remove Unused CSS inlines the used rules, LCP improved instead (1.7 s to 1.2 s with Delay JavaScript already on). So the result depends on how the plugin implements it, not on the name of the feature.

  • Light theme, already fast: one of the two is enough; measure LCP before keeping both.
  • Heavy theme or page builder: Remove Unused CSS usually saves more bytes; critical CSS fixes the white screen while they load.
  • Pages that change often: automatic generation matters, or your critical CSS goes stale.

How to add critical CSS without a plugin

Generate the critical CSS for one URL with an online critical CSS generator, paste it into a <style> block in the <head> (with a code snippets plugin or a child theme, not by editing your theme’s header.php, which an update overwrites), and load the full stylesheet without blocking, for example with media="print" onload="this.media='all'" plus a <noscript> fallback. Google’s Lighthouse docs describe the same idea: inline the styles needed for the first paint and load the rest later.

I wouldn’t do this by hand on a normal WordPress site: every theme update or new block can change what is above the fold, and nothing warns you when the inline rules go stale. A plugin regenerates it; you won’t.

How to check that critical CSS is working

  1. Open the page logged out, press Ctrl+U and search for the plugin’s critical CSS marker (for example critical). You should see a <style> block in the head.
  2. Run PageSpeed Insights and check that the render-blocking CSS warning shrank or disappeared, then compare First Contentful Paint with your previous run (use the middle of three runs).
  3. Look at the page on a slow connection (DevTools > Network > Slow 4G). If the top flashes unstyled for a moment and then jumps, the critical CSS is incomplete (that also hurts CLS).
Page source search showing xSpeed critical CSS fold beacon on the test page

When and how to regenerate critical CSS

Regenerate after any change to your theme, header, fonts or page templates, because the rules for the first screen change with them. Where the button is:

  • xSpeed Cache Pro: the admin bar has a separate Critical CSS purge; it rebuilds on the next visit.
  • WP Rocket: Regenerate Critical Path CSS in the admin bar (shown when Load CSS asynchronously is on).
  • Jetpack Boost (free): Regenerate under Optimize Critical CSS Loading, with the page left open until it finishes.
  • NitroPack: purge the cache. It warns that re-optimizing takes a few minutes; in my test the page was back to a cache HIT about 15 minutes later.
  • FlyingPress: purge the cache so the used CSS is rebuilt.

Critical CSS problems and fixes

  • A flash of unstyled content, or a menu/popup without styles: the critical CSS missed elements that appear later. Add those selectors to the plugin’s include list (FlyingPress has an include CSS selectors box; others have similar settings), then regenerate.
  • Generation fails: in my Jetpack Boost test the first run failed because another feature had broken the stylesheets. Fix the page first, then regenerate.
  • It goes stale: regenerate after design changes (see the section above).
  • Page builders (Elementor and similar): after editing a template, regenerate critical CSS; if the layout still looks wrong, clear the builder’s own CSS first (Elementor: Tools > Clear Files & Data), then purge.
  • LCP got worse: as in my xSpeed test with Remove Unused CSS on top. Turn one feature off and measure again with three runs.
  • Mobile looks different from desktop: some plugins (WP Rocket with mobile cache, for example) can generate separate mobile critical CSS; check whether yours does.

After any change, purge the cache in the right order: CSS files first, then the page cache, then Cloudflare. The full order and where each button is: how to clear WordPress cache.

If you are still choosing a plugin, my best WordPress cache plugins test compares all ten on the same server.

FAQ

What is critical CSS in WordPress?

It is the small set of CSS rules a page needs to show its first screen. A plugin inlines those rules in the page’s head and loads the full stylesheets without blocking, so the visible part appears sooner. WordPress has no built-in option; you add it with a plugin such as Jetpack Boost, NitroPack, WP Rocket or xSpeed Cache Pro.

Is there a free critical CSS plugin for WordPress?

Yes. Jetpack Boost generates it for free but manually: you press Regenerate after design changes. NitroPack’s free plan includes it automatically. LiteSpeed Cache uses a free monthly QUIC.cloud quota. Autoptimize’s critical CSS needs a paid criticalcss.com key.

Does critical CSS improve PageSpeed scores?

It can, if render-blocking CSS is holding your page back. On my already-fast test page the score stayed at 100, but First Contentful Paint improved from 1.1 s to 0.9 s and LCP from 1.4 s to 1.2 s when I added xSpeed Cache Pro’s critical CSS on top of page cache and Delay JavaScript.

Should I use critical CSS and Remove Unused CSS together?

Usually pick one and measure. WP Rocket doesn’t allow both at once, and xSpeed skips critical CSS on pages Unused CSS handles. In my xSpeed test, adding Remove Unused CSS on top of critical CSS made LCP worse (1.2 s to 1.7 s).

How often should I regenerate critical CSS?

After any change to your theme, header, fonts or page templates. Plugins with automatic generation handle it; Jetpack Boost’s free version and WP Rocket’s per-post-type critical CSS need a manual regenerate.

Can critical CSS break my site?

It can cause a short flash of unstyled content or missing styles on menus and popups if the generated CSS misses some elements. It doesn’t change your real stylesheets, so turning it off and purging the cache undoes it.

How big should critical CSS be?

Small. Google’s web.dev guidance is to keep above-the-fold CSS under about 14 KB compressed. xSpeed’s critical CSS for my test page was 10.0 KB.

Related Guides