Categories
Uncategorized

The First 14 KB

Barry Pollard has a ground level examination of the performance adage that the first 14 KB of a page view is the most critical: Critical Resources and the First 14 KB – A Review.

If you aren’t familiar with how the 14 KB guideline came to be, that is one of the first things he addresses. The short version is TCP slow start.

That is the theoretical of what a new TCP connection looks like for a page view, what Barry Pollard does here is look at the details of what a real world process goes through. I really like it when people examine what really happens, where the rubber meets the road, in this case that means looking at one packet at a time.

The bottom line:

This post is also not intended to mean that page size is not important – it is massively important and I’m a big fan of optimising web performance! However I do warn against absolutism. The real world is far more complex than that. The general advice still stands: put your important resources near the top of the page so the browser can see them as soon as possible and start working on them, and ideally make your page as small as possible to allow it to download quickly. But don’t sweat too much over this magic 14 KB number.

When in doubt, measure for yourself what happens during a page view of your site. And do it sometimes even when you don’t have doubt, to confirm that your theories match reality.