# Critical CSS for WordPress

> Inlines only the CSS needed for the top of each page and loads the rest without blocking — fixing the “eliminate render-blocking resources” warning and…

TW-PRF-03 Performance


Inlines only the CSS needed for the top of each page and loads the rest without blocking — fixing the “eliminate render-blocking resources” warning and speeding up first paint. Rebuilt automatically when your theme or plugins change.

[Get it from $26 a year](https://togglework.app/pricing/#plans) [Try it in the demo](https://togglework.app/demo/)

Critical CSS

**Part number**
: TW-PRF-03
**Section**
: [Performance](https://togglework.app/features/performance/)
**Settings**
: 5
**Starts**
: Switched off
**In plans**
: Every plan

## Why it matters

Browsers won’t draw anything until they have downloaded every stylesheet in the page head. On a theme with several large CSS files, that is the main reason for PageSpeed’s “eliminate render-blocking resources” warning, and for a blank screen on slow connections.

Critical CSS inlines just the rules the top of the page needs and loads the rest without blocking, so the page appears sooner.

### What it does

- Builds critical CSS per page type: home, pages, posts, archives and products.
- Inlines it and loads the full stylesheets without blocking.
- Rebuilds automatically when your theme or plugins change.
- Skips results that are too large to help (default limit 75 KB).

![Critical CSS settings screen in the Toggleworks WordPress plugin, showing Page types, How much of the page counts as “top”, Maximum size, Always include rules for](https://togglework.app/wp-content/themes/toggleworks-site/assets/img/parts/performance-critical-css.webp?v=1795524354)

The Critical CSS screen in wp-admin, where you switch it on and change its settings.

## Set it up

1. Switch Critical CSS on and choose the page types.
2. Load a few pages on a slow connection and watch the top of the page as it appears.
3. If something at the top looks unstyled for a moment, add its selector (a sticky header, a cookie banner) to **Always include rules for** .

## What you can set

Switch Critical CSS on in Toggleworks → Performance, then adjust any of these. Each one starts with a default, so you can switch the part on first and fine-tune later.

- Page types Home page · Pages · Posts · Archives and blog · Products
- How much of the page counts as “top”
- Maximum size
- Always include rules for
- Keep these stylesheets render-blocking

## Good to know

- If a stylesheet must load before anything is shown (for example a font-loading stylesheet), keep it render-blocking by handle.

[Guide: How to speed up a WordPress site, in the right order](https://togglework.app/guides/speed-up-wordpress/)

## One less plugin to install

Critical CSS does a job people often install a separate plugin for:

- Critical CSS above the foldOften done with WP Rocket

## Comes with 187 more parts

Critical CSS is one part of Toggleworks, a single plugin for security, speed, SEO, backups, email and store tools. Switch on what your site needs; the rest stays off and loads nothing.

[All 18 Performance parts](https://togglework.app/features/performance/)

### People also look for it as

- critical css
- render blocking
- above the fold
- core web vitals
- lcp
- fcp
- pagespeed

## Often switched on with it

- [Defer & Delay JavaScript](https://togglework.app/features/performance/defer-scripts/) — TW-PRF-05 · Stop scripts from blocking page rendering by deferring them, or delaying them until the visitor interacts. Test your key pages… · 6 settings
- [Lazy Load](https://togglework.app/features/performance/lazy-load/) — TW-PRF-11 · Lazy load images and iframes across the whole page while keeping the first images eager for a fast LCP. Optional click-to-play… · 14 settings
- [Preload & Resource Hints](https://togglework.app/features/performance/preload-hints/) — TW-PRF-15 · Preconnect to third-party origins, preload key files, and prefetch pages before visitors click them. · 13 settings
- [Asset Manager](https://togglework.app/features/performance/asset-manager/) — TW-PRF-01 · See every CSS and JavaScript file a page loads and switch off the ones it does not need — on one page, everywhere, or everywhere… · Own screen in wp-admin
- [Browser Cache Headers](https://togglework.app/features/performance/page-cache-headers/) — TW-PRF-14 · Let browsers and proxies cache pages for logged-out visitors, and optionally strip ?ver= from asset URLs. · 2 settings
- [Bulk WebP Converter](https://togglework.app/features/performance/webp-converter/) — TW-PRF-18 · Convert your existing media library to WebP in the background and serve the smaller files automatically. Originals are kept, so… · 3 settings

## Questions

**Is Critical CSS included in every Toggleworks plan?**

Yes. Every plan includes all 188 parts, Critical CSS among them. Plans differ only in how many sites you can use them on, and staging or local copies of a site don’t count.

**Does Critical CSS slow my site down when it’s switched off?**

No. Every part starts switched off, and a part that is off loads none of its code. Switch on Critical CSS only if your site needs it.

**What if a setting locks me out?**

Add `define( 'TOGGLEWORKS_SAFE_MODE', true );` to wp-config.php. It pauses every part until you remove the line, and Tools → Recent changes lets you undo a change.

**Can I try Critical CSS before I buy?**

Yes. The [live demo](https://togglework.app/demo/) runs a WordPress site with Toggleworks in your browser, and every plan has a 14-day refund.

## Switch off the plugin pile.

All 188 parts, one license, updates and support. 14-day refund.

[Choose a plan](https://togglework.app/pricing/#plans) [Try the live demo](https://togglework.app/demo/)

---

Source: https://togglework.app/features/performance/critical-css/
