Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

isn't the whole point avoiding FOUC, while also avoiding to block the rendering for CSS network requests?


Unless you're sure that your the "non-critical" css doesn't cause layout shifts (aka, it doesn't overload any "critical" styles), you're gonna see layout shifts even on fast connections if you load some styles at the top of the document and then do a link rel at the bottom.


The critical css should cover everything above the fold to avoid that visible reflow.


Where’s the fold in a world of 000’s of viewports?


Then what does the "non-critical" css do?


The non-critical things?

I mean, i agree with you that this is insanely easy to screw up. However in most websites there is obviously css which doesn't cause reflows and is not needed for first paint. Actually separating that out correctly seems easy to mess up, but it obviously exists.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: