5 ms·
If they're really that repetitive, then gzip should eliminate almost all of the bloat. We also need to think about number of round-trips. If you're on an old p
by matchu 11y ago
If they're really that repetitive, then gzip should eliminate almost all of the bloat.
We also need to think about number of round-trips. If you're on an old phone on a 3G connection in India, the extra round-trip from requesting the HTML then requesting the CSS makes a difference.
I'm super interested about the performance aspect, too, but I feel like we need numbers to really go into detail. There's way too many factors at play here for the correct answer to be obvious.
- yid 11y ago> We also need to think about number of round-trips. If you're on an old phone on a 3G connection in India, the extra round-trip from requesting the HTML then requesting the CSS makes a difference. If your stylesheets are properly versioned, they can be cached forever, which means exactly the same number of requests as inline styles with much less bandwidth use.
- matchu 11y agoNot on first load. The cache needs to be populated somehow. I agree that it's a special case, but it's one we shouldn't just ignore.
- adrusi 11y agoAnd the number of roundtrips can be helped by using Keep-Alive.