Skip to content
47

Critical-path (Above-the-fold) CSS Tools

Tools to prioritize above-the-fold (critical-path) CSS

1.2k stars48 forks27 entriesLast push Jul 18, 2022 (4 years ago)License none

This page lists names, links and short descriptions. The original list on GitHub is the source and belongs to its authors.

Node modules

Penthouse

by Jonas Ohlsson generates critical-path CSS

Critical

by Addy Osmani generates & inlines critical-path CSS (uses Penthouse, Oust and inline-styles)

In 3 lists

CriticalCSS

by FilamentGroup finds & outputs critical CSS

Server-side modules

mod_pagespeed

Apache module for automatic PageSpeed optimization

ngx_pagespeed

Nginx module for automatic PageSpeed optimization

Grunt tasks

grunt-penthouse

grunt-critical-css

grunt-critical

CasperJS

critical-css-casperjs

CasperJS script to pull critical CSS information from pages

PhantomJS

dr-css-inliner

PhantomJS script to inline above-the-fold CSS on a page.

Inline sources (styles, scripts)

inline-styles

by Max Ogden, replaces <link> tags with inline <style> tags + inlines CSS url() calls with data URIs

gulp-inline-source

by Filip Malinowski, replaces <link> tags with inline <style> tags, and replaces <script src=""> tags with their inline content

inline-critical

by Ben Zörb, inline critical path CSS and load existing stylesheets with loadCSS

isomorphic-style-loader

for Webpack - allows to extract critical CSS for any given page/screen in React apps and inline it into HTML during server-side rendering (SSR). See React Starter Kit as an example.

In 2 lists

Async load CSS

loadCSS

loads CSS asynchronously using JS. Research that led to this is also available.

async & conditional loading

POC script for loading CSS files asynchronously and conditionally based on body tag classes

asyncLoader

async script/stylesheet loader

basket.js

async script/resource loader with support for localStorage caching. Can be extended to load stylesheets.

Online tools

Penthouse online

Bookmarklets/Extensions

Snippet

by Paul Kinlan. Patrick Hamann has an exercise using the snippet you can try out.

Snippet

by Scott Jehl

CSSVacuum

by ndreckshage

Render-blocking issues detection

PageSpeed Insights

Online tool that measures the performance of a page for mobile devices and desktop devices. It fetches the url twice, once with a mobile user-agent, and once with a desktop-user agent.

In 7 listsDetails

PSI

Node module for PageSpeed Insights reporting as part of your build process. Use directly with Gulp or use grunt-pagespeed if a Grunt user. For local testing, a write-up using this task and ngrok is available.

In 2 lists

PageSpeed Insights DevTools extension

Chrome extension for running PageSpeed tests from inside the browser.

PageSpeed Insights Checker for mobile extension

checks Mobile PageSpeed score for every page and gives you a handy preview.

Supplementary tools

UnCSS

removes unused CSS from pages, allowing you to reduce the global CSS you may need to load in for your site. Tasks are available for Grunt, Gulp and other build tools.

See category
93

Awesome Vue

vuejs/awesome-vue

🎉 A curated list of awesome things related to Vue.js

Fresh★ 74k1067 entriesPushed 5 days ago
93

Awesome DESIGN.md

VoltAgent/awesome-design-md

A collection of DESIGN.md files analysis by popular brand design systems. Drop one into your project and let coding agents generate a matching UI.

Fresh★ 119k74 entriesPushed 9 days ago
91

Awesome Angular

PatrickJS/awesome-angular

:page_facing_up: A curated list of awesome Angular resources

Fresh★ 10k1944 entriesPushed today
90

Awesome Blazor

AdrienTorris/awesome-blazor

Resources for Blazor, a .NET web framework using C#/Razor and HTML that runs in the browser with WebAssembly.

Fresh★ 9.4k375 entriesPushed today
88

Must-Watch CSS

AllThingsSmitty/must-watch-css

CSS talks you have to see covering CSS Grid, flexbox, custom variables, performance, frameworks, tooling, and more! 📺

Fresh★ 4.9k70 entriesPushed 6 days ago
87

Awesome React Native

jondot/awesome-react-native

Awesome React Native components, news, tools, and learning material!

Fresh★ 36k194 entriesPushed 1 month ago