Seven loads of one page in half an hour
A page averaged well over budget on seven loads from one visitor, swinging from 208 to 776 ms. What we check before saying the page is not the problem.
Our load-time board lists every page slowest first against a budget of three hundred milliseconds, and it only calls a page a job once it has at least three loads on the release that is actually deployed. Last night one page cleared that bar with seven loads averaging 446 milliseconds, worst 776. By the rule, that was the job.
The first thing to do with an average is to read the rows it was made from. The seven loads were one visitor, between 21:13 and 21:43, and they read 208, 209, 308, 656, 260, 776 and 613. The same page, the same person, the same evening, swinging by a factor of four. That is not a page getting slower; a page does not change between one load and the next. It is a connection changing, or a phone doing something else at the time.
The second thing is to measure the page itself rather than trust that it is small. Over the wire it is thirteen kilobytes compressed, with its stylesheet inlined so there is no blocking request for it, three scripts at the end, no images at all and no web fonts. The largest thing it paints is text, which paints as soon as the markup arrives. There is nothing in the file for a slow load to be waiting on.
The third thing is to look at what the slow rows named as their slowest network call, because the board records that beside every load. All of them named the same small status call every page makes after it paints, at around 240 milliseconds, with the server’s own share of that at 180. That call cannot slow a paint it runs after, so it was not the answer to this row. But it was three database reads in a line that could have been one, so it became the job instead, and the page was left alone.
The temptation with a board like this is to find something to change every time a number is red, because changing something feels like progress and leaving a red row alone feels like neglect. The discipline is the other way round. A page that is already as small as it can be does not get faster by being rewritten; it gets rewritten, and a visitor on a bad connection still waits. The note in the worklog says what was measured and why nothing moved, so the next person to see the same row red does not spend an hour arriving at the same place.