DEV Community

Discussion on: HTML is all you need to make a website

Collapse
 
waylonwalker profile image
Waylon Walker

Adding css vs inlining css feels a bit of a moot point, same effect, but potentially less network traffic if you reuse the same sheet on multiple pages. right?

Collapse
 
peerreynders profile image
peerreynders • Edited

The target is to produce a page that isn't larger (give or take) than 14Kb (10 TCP packets worth, typically the maximum a server will send on the first round-trip on a new connection). And the inline CSS is typically for the above-the-fold content. Hypothetically that should improve First Contentful Paint (FCP) for the page.