Render-blocking CSS is one of the most reliable ways to tank a Largest Contentful Paint score, and it’s almost universal on WordPress sites running a theme with a large stylesheet. WM Critical CSS solves the problem automatically, with no manual extraction tools and no paid third-party service.
The plugin identifies each distinct template type on your site — front page, singular, archive, category pages — and dispatches a headless renderer to visit each one. The renderer measures the above-the-fold viewport and extracts the precise subset of CSS rules that apply to visible content. That critical subset is stored per template and inlined directly into <head>. The full stylesheet is then loaded asynchronously, so the browser never has to wait for it before painting the first frame.
Regeneration happens automatically when you update your theme or re-activate the plugin, and a WP-CLI command lets you force a fresh extraction any time. The plugin is compatible with every major caching layer — object cache, page cache, and CDN edge caching — because the inlining happens at the PHP template level, before any cache writes.
Three steps to up and running
Template detection
The plugin identifies your distinct WordPress template types (front page, single, archive, category, WooCommerce pages) and queues them for extraction.
Headless extraction
A lightweight headless renderer visits each template, measures the above-the-fold viewport, and extracts only the CSS rules that apply to visible content.
Inline and defer
Extracted critical CSS is stored per template and inlined in <head>. The full stylesheet is loaded asynchronously, eliminating render-blocking CSS.
What's included
Who it's for
- Improve Largest Contentful Paint scores without switching hosting or CDN.
- Pass Core Web Vitals on theme-heavy sites where a full CSS file is hundreds of KB.
- Reduce render-blocking resource warnings in PageSpeed Insights automatically.
Technical requirements
Version history
- — Fixed async stylesheet load on Safari 17
- — Added support for WooCommerce shop and product templates
- — Initial stable release
- — Support for 12 default WordPress template types
