←back to thread

Critical CSS

(critical-css-extractor.kigo.studio)
234 points stevenpotts | 1 comments | | HN request time: 0s | source
Show context
stevenpotts ◴[] No.43901496[source]
I searched online for tools to extract the critical css of a website for one of my clients, I couldn't find one that did the job so I did so after using Puppeteer locally and then decided to share the solution I used that let's you specify how long to wait after page load to extract the styles; even found a paid one but requested refund after it didn't work.

Feedback welcome, it's free for now.

replies(4): >>43901863 #>>43902081 #>>43902101 #>>43902559 #
jefozabuss ◴[] No.43902101[source]
What was the problem with something like https://www.npmjs.com/package/penthouse ?
replies(2): >>43902228 #>>43903993 #
1. robotfelix ◴[] No.43903993{3}[source]
It's worth noting that penthouse's last release is a few weeks shy of 3 years ago (https://github.com/pocketjoso/penthouse/releases/tag/v.2.3.3).

Given there seem to be few other Critical CSS tools out there, its utility in driving web performance, and the fact Google's web.dev recommended tool (https://github.com/addyosmani/critical) uses penthouse under the hood, I'm surprised there isn't more effort and/or sponsorship going into helping maintain it.