WP Manifestindependent plugin directory
manifest / performance / critical-css-wp

Critical CSS for WP releasesself-updates

Critical CSS for WP — Generate and inject critical CSS for WordPress pages via a configurable API endpoint

by G Matta · github.com/gmatta01/critical-css-wp

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/gmatta01/critical-css-wp/archive/refs/heads/main.zip

Ships its own WordPress updater (built-in updater), so new versions show up under Dashboard → Updates.

Readme

Critical CSS for WP

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_css key
  • 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

  1. Activate the plugin.
  2. Open Settings → Critical CSS.
  3. Set the API URL for the critical CSS service.
  4. Select enabled post types.
  5. 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_DEBUG and WP_DEBUG_LOG are enabled.

Read the full README on GitHub →

Releases

TagPublished
v0.2.13 Aug 21, 2026
v0.2.12 Aug 21, 2026
v0.2.11 Jul 23, 2026
v0.2.10 Jul 23, 2026
v0.2.9 Jul 18, 2026
v0.2.8 Jul 18, 2026
v0.2.7 Jul 18, 2026
v0.2.6 Jul 18, 2026
v0.2.5 Jul 18, 2026
v0.2.4 Jul 18, 2026

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.