Hacker News new | ask | show | jobs
by lenkite 414 days ago
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.
2 comments

Your page would still need the full CSS sheet loaded to render properly - tailwing classes do nothing on their own.
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.
I used it on a pure html, js and css static site with bootstrap, it was useful there to me