manifest / performance / critical-css-wp
Critical CSS for WP WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
Critical CSS for WP — Generate and inject critical CSS for WordPress pages via a configurable API endpoint
★ 0stars
v0.2.13latest · 2mo ago
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/gmatta01/critical-css-wp/archive/refs/heads/main.zipUpdates itself. It ships its own updater, so new versions appear under Dashboard → Updates.
Critical CSS for WP generates and stores critical CSS for published WordPress content using a configurable HTTP API endpoint. It injects the generated CSS inline on the frontend and can defer render-blocking styles when a page has critical CSS available.
Features
- Generates CSS for published posts, pages, and other public post types
- Stores generated CSS in post meta using the
_critical_csskey - Injects the CSS inline in the page head via
wp_head - Defers non-critical enqueued styles using the
media="print" onload="this.media='all'"pattern - Supports manual regeneration from the settings screen, bulk actions, and single-post actions
- Uses WP Cron for scheduled regeneration with configurable intervals and thresholds
- Provides a settings page under Settings → Critical CSS
Configuration
- Activate the plugin.
- Open Settings → Critical CSS.
- Set the API URL for the critical CSS service.
- Select enabled post types.
- Save the settings and trigger a manual regeneration if needed.
Notes
- The API endpoint is configurable so it can be changed later without changing code.
- The plugin keeps the implementation simple and extendable for future API changes.
- Logs are written to the WordPress debug log when
WP_DEBUGandWP_DEBUG_LOGare enabled.
Releases
10 releases.
Tag
Published
v0.2.13
latest
Aug 21, 2026 2mo ago
Aug 21, 2026 2mo ago
Jul 23, 2026 3mo ago
Jul 23, 2026 3mo ago
Jul 18, 2026 3mo ago
Jul 18, 2026 3mo ago
Jul 18, 2026 3mo ago
Jul 18, 2026 3mo ago
Jul 18, 2026 3mo ago
Jul 18, 2026 3mo ago
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.