Menu

First paint takes 368ms at my desk and 9.2 seconds on a slow link, and 3.7 of those seconds are our own font preloads
📰

First paint takes 368ms at my desk and 9.2 seconds on a slow link, and 3.7 of those seconds are our own font preloads

DEV Community: nextjs·Daniel Pertu·4 days ago
#VpSvWTvX
#devtonextjs#devto#dev#font#paint
Reading 0:00
15s threshold

I measured real paint metrics on all 76 of our pages a few days ago and the numbers were lovely: LCP median 160ms, LCP equal to FCP on every page because the largest element is always text, 10 woff2 files finishing about 70 milliseconds before first paint, and a site-wide layout shift of 0.000439 attributable to one element.

Every one of those numbers was measured on a fibre connection with the browser sitting on the same desk as me. So this time I throttled it.

Four speeds, six pages

CDP's Network.emulateNetworkConditions , cache disabled, six representative pages per profile, medians:

profile latency down LCP FCP TTFB load none 0 unlimited 368 368 29 515 fast 4G 70 9 Mbps 792 792 29 1,089 slow 4G 150 1.6 Mbps 2,552 2,552 30 4,776 slow 3G 400 400 kbps 9,248 9,248 29 20,437

Enter fullscreen mode

Exit fullscreen mode

LCP equals FCP at all four speeds, which is the earlier finding holding up: on a site with no images, the largest contentful paint is a paragraph, and a paragraph paints when anything…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.