PHPackages                             djgadd/themosis-criticalcss - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. djgadd/themosis-criticalcss

AbandonedArchivedWordpress-plugin[Utility &amp; Helpers](/categories/utility)

djgadd/themosis-criticalcss
===========================

A themosis plugin that generates critical CSS

0.2.7(8y ago)38[1 issues](https://github.com/djgadd/themosis-criticalcss/issues)PHPPHP &gt;=7.0

Since Apr 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/djgadd/themosis-criticalcss)[ Packagist](https://packagist.org/packages/djgadd/themosis-criticalcss)[ RSS](/packages/djgadd-themosis-criticalcss/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (5)Versions (22)Used By (0)

Themosis Critical CSS
=====================

[](#themosis-critical-css)

A WordPress plugin for Themosis that implements [kalfheim/critical-css](https://github.com/kalfheim/critical-css) to generate critical CSS in WordPress. You'll need to have wp-cli setup to run it, and it'll also need to be present in production to new/changed posts. Also relies on `keltiecochrane/themosis-illuminate` implementation of config and files, and uses `keltiecochrane/themosis-logger` for logging.

It will generate CSS for mobile, tablet and desktop devices, which will be served as appropriate by browser sniffing. It will automatically modify style tags to set them to `rel="preload"` and uses loadCSS to polyfill browsers that don't support preloading.

This plugin will set a cookie to determine users that have/haven't been served the CSS previously (to avoid inflated page loads for users that have a cached copy of your CSS.) You may need to add a notice or override this functionality as is appropriate to local laws regarding cookies.

Install
-------

[](#install)

From your projects base path run: -

`npm install critical --save`

Require the package in composer: -

`composer require keltiecochrane/themosis-criticalcss`

Copy the `config/criticalcss.php` file into your config folder.

Activate the plugin in WordPress.

Use
---

[](#use)

You'll need to have wp-cli installed, to generate CSS run: -

`wp critical-css generate`

To clear generated CSS run: -

`wp critical-css clear`

Support
-------

[](#support)

This plugin is provided as is, though we'll endeavour to help where we can.

Contributing
------------

[](#contributing)

Any contributions would be encouraged and much appreciated, you can contribute by: -

- Reporting bugs
- Suggesting features
- Sending pull requests

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~21 days

Recently: every ~66 days

Total

15

Last Release

3019d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f56741780f11ffb4621377059e0e8db9b09b1630a67ad3935b23c2b38791d23b?d=identicon)[djgadd](/maintainers/djgadd)

---

Tags

pluginthemosis

### Embed Badge

![Health badge](/badges/djgadd-themosis-criticalcss/health.svg)

```
[![Health](https://phpackages.com/badges/djgadd-themosis-criticalcss/health.svg)](https://phpackages.com/packages/djgadd-themosis-criticalcss)
```

###  Alternatives

[sybrew/the-seo-framework-extension-manager

A WordPress plugin that allows you to manage extensions for The SEO Framework.

8490.3k](/packages/sybrew-the-seo-framework-extension-manager)[winter/wn-sitemap-plugin

Sitemap plugin for Winter CMS

1042.6k1](/packages/winter-wn-sitemap-plugin)[coldtrick/widget_manager

Manage your widgets

214.3k](/packages/coldtrick-widget-manager)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
