> Critical extracts & inlines critical-path (above-the-fold) CSS from HTML
https://github.com/addyosmani/critical
Penthouse, the OG of Critical CSS generators
> Penthouse will return the critical CSS needed to perfectly render the above the fold content of the page
https://github.com/pocketjoso/penthouse
> Above the fold is an arbitrary definition because it varies by device
I mean, sure. But your critical path of CSS is never going to mean the whole page (unless it's a very short page). And skeleton components is objectively a completely different thing. Having definitions, even if "arbitrary," are important.
Agree on the async JS part but I guess browser makers will solve it soon.
- PurifyCSS https://github.com/purifycss/purifycss
- Google Chrome dev tools https://www.labnol.org/internet/remove-unused-css/28635/
- Firefox https://developer.mozilla.org/en-US/docs/Tools/CSS_Coverage
- Penthouse a critical path CSS generator https://github.com/pocketjoso/penthouse