2 ms·
I appreciate their minimalism too, but with http2 and http3 isn't this an anti-pattern? The overhead of loading an additional file is negligible in http2/3, but
by craftkiller 2y ago
I appreciate their minimalism too, but with http2 and http3 isn't this an anti-pattern? The overhead of loading an additional file is negligible in http2/3, but inlining causes you to have to re-download the CSS on every page instead of benefiting from the browser's cache.
- dieulot 2y agoNo because that additional CSS file can only be fetched after the initial HTML file has been fetched, not simultaneously; thus requiring another roundtrip to the server. (HTTP/2 Server Push promised otherwise but it was never implemented correctly.) Latency being much more constraining than bandwidth, embedding a stylesheet that’s small is nearly always the correct tradeoff.