|
|
|
|
|
by crazygringo
405 days ago
|
|
But it increases overall bandwidth, because you're adding a bunch of CSS to every page that can't be cached. That's a terrible tradeoff. And if a site has a single CSS file, there's only ever a CSS round-trip on the first page. There aren't any round-trips afterwards. |
|
This technique is usually combined with preloads so the parser can identify assets that should be prefetched while the remaining packets are still being downloaded.
If your "Critical CSS" is small enough (i.e., it fit well within the client's CWND), it is very possible it doesn't increase the total number of roundtrips at all.
As a web developer, if you are optimizing for above-the-fold CSS, you are already optimizing in lots of other ways, and should be fully cognizant of the potential trades for the optimization solutions that are available to you.