Re:Critical CSS
by lenkite on Tuesday May 06, 2025 @03:51AM
(#43902689)
Assuming you are using an atomic CSS based framework like tailwind, this would be unnecessary right ? Since all the CSS class names are anyways in-lined with the element.
[ Parent
| on HN ]
Re:Critical CSS
by DecoySalamander on Tuesday May 06, 2025 @05:19AM
(#43903110)
Your page would still need the full CSS sheet loaded to render properly - tailwing classes do nothing on their own.
Re:Critical CSS
by hombre_fatal on Tuesday May 06, 2025 @05:56AM
(#43903299)
That said, if all of your css is referenced by html classes, it would be trivial to look at the html that's above the fold and derive which css you need to load first which could be kinda cool.
Re:Critical CSS
by stevenpotts on Thursday May 08, 2025 @01:45PM
(#43928990)
I used it on a pure html, js and css static site with bootstrap, it was useful there to me