←back to thread

Critical CSS

(critical-css-extractor.kigo.studio)
234 points stevenpotts | 2 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 #
promiseofbeans ◴[] No.43901863[source]
Is the code somewhere? This seems like it'd be really useful as a Vite/Astro plugin
replies(1): >>43902054 #
1. cAtte_ ◴[] No.43902054[source]
yeah, doing this manual copy-paste process every time you change something would count as cruel and unusual punishment
replies(1): >>43928668 #
2. stevenpotts ◴[] No.43928668[source]
hehe, I know... I should think about that, I got tons of visits but unsure this is worthwhile since it appears it's not that useful for most people?