Web overview
The Infrastructure overview is the machines a
request crosses. This page is what those machines send a browser, and the order a first visit
loads it in. The Performance overview holds what each change
to the page moved; this one is the page as it stood at 1.0.0.144, and as it stands at 1.0.3.89 in the section read on 7 October.
In plain words
This page lists what the site sends a browser and the order a first visit loads it in, measured on both live sites. Every file comes from the site's own domain. The first paint waits only on the page itself and one small stylesheet (8.5 KB).
What that is worth: a developer can see why the page draws fast and rerun the same measurement from a checkout, and the organization gets a site that loads nothing from a third-party host.
What the page is made of
The edge serves everything text-shaped as Brotli, so the wire sizes above are compressed sizes. The
cache rules are one decision, in
Cache headers.
The type is named in a stylesheet the browser only reads after it has fetched it, so on a cold visit
the one font file would start one round trip late. The build writes a preload link for it into the
page's head, reading the hashed name off its own output rather than carrying it here:
const FACES = ['ibm-plex-sans-latin'];
function preloadTheFonts(): Plugin {
return {
name: 'theyard-preload-fonts',
transformIndexHtml: {
order: 'post',
handler(html, context) {
const built = Object.keys(context.bundle ?? {}).filter((file: string) =>
file.endsWith('.woff2')
);
const hrefs: string[] =
built.length > 0
? built.map((file: string) => `/${file}`)
: FACES.map((face) => `/src/assets/fonts/${face}.woff2`);
return {
html,
tags: hrefs.sort().map((href) => ({
tag: 'link',
attrs: { rel: 'preload', as: 'font', type: 'font/woff2', href, crossorigin: '' },
injectTo: 'head-prepend' as const,
})),
};
},
},
};
}
Live from vite.config.ts, region font-preload, read from this build at 99df7a8.
The order a first visit loads in
Read on 19 September at 10:58 CDT against the live 1.0.0.144 on both sites by
scripts/load-order.cjs: the repository's own Playwright
Chromium, headless, a desktop viewport, a fresh browser context per round so every visit is cold,
three rounds a site (the log is lane0919-985-loadorder.log). Times are milliseconds from the moment
the browser asked for the page.
The four waves were the same on every round of both sites:
- The page itself. One HTML document, about 2.1 KB on the wire. Nothing else can start until it
arrives, so the time to its first byte, 272 to 302 ms on five of six rounds, is the floor under
everything below.
- What the HTML names: one script and one stylesheet, asked for within 10 ms of the document
landing, both from the site's own domain over the same HTTP/2 connection. The stylesheet, 8.5 KB,
is the only thing the first paint waits for: on all six rounds the first paint came 5 to 9 ms
after the stylesheet finished.
- What those two name. The stylesheet asks for the type (four Poppins files when this was measured, about 8 KB each; one IBM Plex Sans file of 29 KB since), at the
highest priority; the script asks for six API reads at once: stores, bids, filter values,
version, who is signed in, and the listing of 100 vehicles. The first contentful paint lands
inside this wave on every round.
- The photographs. The cards cannot ask for a photograph until the listing answers, so 15 or
16 WebP images go out together at low priority, inside 3 ms of each other and 70 to 141 ms after
/api/vehicles finishes; on two rounds the sixteenth came later, at 1,890 and 3,516 ms. The
largest contentful paint lands while they arrive, on every round.
Every request on a cold visit went to the site's own domain over HTTP/2 and answered 200. No
third-party host appears in any of the six rounds.
Read again on 7 October, at 1.0.3.89, on the bare address
The same script, three cold rounds a site, with one change: it now asks for the bare address, because since 1.0.3.88 that is the only address that arrives with the landing page drawn into the HTML, and any query hides the drawing (renderlane-loadorder-bare-sql.log, renderlane-loadorder-bare-cosmos.log; both containers 70 minutes old). The waves are now three, not four:
- The page, carrying the landing page. About 12.7 KB on the wire. Its first byte took 200 to 250 ms on every warm round; the Azure SQL site's first round waited 3.4 s for it, one cold edge.
- Everything the page names, at once, within 10 ms of it landing. The stylesheet, the type, the script and the two badge photographs, and, from the script in the head, all six API reads the landing page makes (ADR: The landing page rendered at build time, server rendering as the goal). Until 1.0.3.87 the API reads waited for the script to arrive and run; now they leave with the page's own files, and every one is asked for once.
- What the page opens later: the document renderer and the Admin tab's chunks, half a second on, which the landing page's own panels load.
The first paint and the largest paint are now the same frame on every round: the page appears whole. On this fast desktop connection it does not appear sooner than the empty shell did: the same script on /?nocache= at 1.0.3.88, where the drawing is hidden and React draws from nothing, painted its first content at 648 to 696 ms (renderlane-loadorder-10388-sql.log). The gain the drawn page bought was measured on a throttled phone, where it took the largest paint 0.2 to 0.7 s sooner (the Performance overview).
The marks, all six rounds
The first round on the Azure SQL site waited 3,332 ms for the document's first byte, and every later
mark on that round carries those three seconds. The other five rounds read 272 to 302 ms. One more
round a site, read at 11:19 CDT the same day from the script's place in this repository, had the same
shape: 3,240 ms on the Azure SQL site and 297 ms on the Cosmos DB site. It is reported as measured;
two samples do not name a cause.
One round in full: the Cosmos DB site, round 2
Each line is one request in the order it was sent: when it was sent, when its first byte and its
last arrived, what it is, the priority the browser gave it, its bytes on the wire, and what asked
for it.
The script rounds both times the same way, to the millisecond, so the order on a line is Chrome's
own. "First byte" is the timestamp on Chrome's Network.responseReceived event and "done" the one
on Network.loadingFinished. They are two events stamped separately, and on a small file Chrome
can stamp the response after the last byte has landed: on 16 of these 29 lines "done" reads 1 to 5
ms before "first byte". The lines are printed as the script logged them.
round 2: ttfb 278 ms, first paint 332 ms, FCP 528 ms, DOMContentLoaded 440 ms, load 441 ms, LCP 1824 ms; 29 requests
1 sent 0 ms, first byte 280, done 279 | Document VeryHigh 2143 B 200 h2 | /?nocache=N | by other
2 sent 285 ms, first byte 398, done 393 | Script High 89823 B 200 h2 | /assets/index-P_kVD16D.js | by parser /?nocache=N
3 sent 285 ms, first byte 325, done 324 | Stylesheet VeryHigh 8490 B 200 h2 | /assets/index-B9hryYpi.css | by parser /?nocache=N
4 sent 467 ms, first byte 1280, done 1279 | Fetch High 249 B 200 h2 | /api/stores | by script /assets/index-P_kVD16D.js
5 sent 469 ms, first byte 1313, done 1328 | Fetch High 67 B 200 h2 | /api/bids | by script /assets/index-P_kVD16D.js
6 sent 469 ms, first byte 1307, done 1305 | Fetch High 299 B 200 h2 | /api/facets | by script /assets/index-P_kVD16D.js
7 sent 469 ms, first byte 1306, done 1305 | Fetch High 105 B 200 h2 | /api/version | by script /assets/index-P_kVD16D.js
8 sent 470 ms, first byte 1307, done 1306 | Fetch High 106 B 200 h2 | /api/auth/me | by script /assets/index-P_kVD16D.js
9 sent 473 ms, first byte 1376, done 1508 | Fetch High 13753 B 200 h2 | /api/vehicles | by script /assets/index-P_kVD16D.js
10 sent 479 ms, first byte 551, done 547 | Font VeryHigh 8084 B 200 h2 | /assets/poppins-latin-600-zEkxB9Mr.woff2 | by parser /assets/index-B9hryYpi.css
11 sent 479 ms, first byte 549, done 546 | Font VeryHigh 7909 B 200 h2 | /assets/poppins-latin-700-Qrb0O0WB.woff2 | by parser /assets/index-B9hryYpi.css
12 sent 479 ms, first byte 558, done 556 | Font VeryHigh 7832 B 200 h2 | /assets/poppins-latin-500-C8OXljZJ.woff2 | by parser /assets/index-B9hryYpi.css
13 sent 507 ms, first byte 550, done 547 | Font VeryHigh 7967 B 200 h2 | /assets/poppins-latin-400-cpxAROuN.woff2 | by parser /assets/index-B9hryYpi.css
14 sent 1578 ms, first byte 1798, done 1797 | Image Low 16895 B 200 h2 | /api/images/sedan-10-480.webp | by other
15 sent 1579 ms, first byte 1682, done 1726 | Image Low 25961 B 200 h2 | /api/images/suv-04-480.webp | by other
16 sent 1579 ms, first byte 1609, done 1656 | Image Low 21373 B 200 h2 | /api/images/sedan-05-480.webp | by other
17 sent 1579 ms, first byte 1727, done 1750 | Image Low 25750 B 200 h2 | /api/images/suv-03-480.webp | by other
18 sent 1579 ms, first byte 1658, done 1657 | Image Low 26552 B 200 h2 | /api/images/suv-06-480.webp | by other
19 sent 1579 ms, first byte 1659, done 1657 | Image Low 15357 B 200 h2 | /api/images/suv-07-480.webp | by other
20 sent 1579 ms, first byte 1703, done 1749 | Image Low 26698 B 200 h2 | /api/images/suv-08-480.webp | by other
21 sent 1579 ms, first byte 1751, done 1821 | Image Low 18453 B 200 h2 | /api/images/truck-03-480.webp | by other
22 sent 1579 ms, first byte 1798, done 1843 | Image Low 15863 B 200 h2 | /api/images/sedan-06-480.webp | by other
23 sent 1580 ms, first byte 1681, done 1680 | Image Low 26691 B 200 h2 | /api/images/suv-02-480.webp | by other
24 sent 1580 ms, first byte 1659, done 1679 | Image Low 24212 B 200 h2 | /api/images/truck-04-480.webp | by other
25 sent 1580 ms, first byte 1774, done 1820 | Image Low 37165 B 200 h2 | /api/images/sedan-04-480.webp | by other
26 sent 1580 ms, first byte 1845, done 1844 | Image Low 23585 B 200 h2 | /api/images/sedan-07-480.webp | by other
27 sent 1580 ms, first byte 1751, done 1820 | Image Low 15984 B 200 h2 | /api/images/sedan-03-480.webp | by other
28 sent 1580 ms, first byte 1774, done 1821 | Image Low 20352 B 200 h2 | /api/images/sedan-09-480.webp | by other
29 sent 3516 ms, first byte 3612, done 3635 | Image Low 24670 B 200 h2 | /api/images/hatchback-01-480.webp | by other
What the order says
- The first paint waits on two things, the document and an 8.5 KB stylesheet, both from the
site's own domain. Until 1.0.0.140 it also waited on a stylesheet from Google Fonts, 852 ms on a
throttled phone by Lighthouse, and that was the one render-blocking resource on the page. Serving
the four font files from
/assets was that version's whole change to the page, and on
Lighthouse's throttled phone profile against the live site the first contentful paint went from
2.8 s to 1.6 s, while a cold visit's requests to third-party hosts went from five to none
(The palette, addendum; the row with both readings is
on the Performance overview).
- The script does not block the paint and the fonts do not block the text. The script is a
module, which a browser defers, and the type swaps in when it lands, which is the 0.175 layout
shift the Performance overview names and leaves alone.
- The photographs are last on purpose. They are the largest bytes on the page and nothing a
visitor reads depends on them
(Responsive photos).
Check any of it yourself
node scripts/load-order.cjs <log path> <label> <site url> [rounds] from a checkout with the
browser suite installed. It reads and never writes: a cold visit, the requests in the order they
were sent, and the paint marks between them.