addyosmani/critical
Extract & Inline Critical-path CSS in HTML pages observed · 2026-08-28
Health v2 · maintenance only
81/100
- Activity 95
- Release rhythm 52
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 600
- age_days: 4449
- days_rel: 108
- days_push: 30
- n_releases_24m: 2
Adoption not part of the score
10265 stars · 389 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Node.js tool that extracts above-the-fold (critical-path) CSS from HTML pages, inlines it into the document head, and asynchronously loads the remaining stylesheets to eliminate render-blocking CSS. It offers both a CLI and a JavaScript API, with two extraction engines (DOM-based and browser-rendered) and an MCP server for coding agents.
Use cases
- extract critical css from html
- inline above-the-fold css to improve first paint
- remove render-blocking stylesheets
- improve largest contentful paint score
- optimize css for static site builds
- defer non-critical css loading
- generate critical css in ci pipeline
When to choose
- you need faster first paint and better LCP on static sites, MPAs, or SPAs
- you want deterministic output safe for CI and version control diffs
- you need a tool that works under strict Content Security Policy without inline scripts
- you want both a CLI for build pipelines and an API for programmatic use
When to avoid
- your pages have no external stylesheets or already inline all CSS
- you need full CSS optimization like minification or purging unused styles across the whole page
- you cannot run Node.js in your build environment
Facets
cli-tool · maturity active
css-framework build-tool cli developer-tools web-development frontend performance web-design cli critical-css above-the-fold render-blocking web-performance lcp-optimization css-inlining mcp-server nodejs web-server
1 source
- readme: https://github.com/addyosmani/critical · fetched 2026-08-28 · b74f073f1345
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| addyosmani/critical | main | 81 |
For agents
markdown · JSON · MCP: product_card(name="addyosmani/critical")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem