A data-heavy site that paints its headline at once on a phone.
The ask. About 80% of landing visits came from phones, and Search Console flagged 4,000+ company pages for slow mobile paint (phone p75 at 3.1 s).
- mobile LCP, throttled lab (was 1.84 s; “good” is under 2.5 s)
- 1.27s
- KB, company screen
- 170→35
- layout shift
- 0
- Android app from the same React code
- 1
- Product impact
- Most readers are on phones, and 4,000+ company pages flagged by Search Console are the site's front door from search.
- Engineering impact
- Landing LCP 1844 → 1268 ms, the heaviest screen 170 → 35 KB, zero layout shift.
01Understand
Traces showed signed-out readers got an empty shell, and the company screen was a single 170 KB chunk.
02Propose
Paint from the HTML and start the right code while it parses; split heavy screens; hydrate prerendered markup instead of redrawing it.
03Prove small
Load the popup and table stack on demand first: first-load JS 316 → 281 KB gzipped.
04Iterate
A build-time preload map, the company screen split 170 → 35 KB, data fetched during HTML parse, and virtualised 126-month tables (tab switch ~1.7 s → ~0.6 s).
05Ship
A prerendered shell served by nginx and hydrated, Cloudflare cache purges by tag, and the previous build's assets kept so open tabs never break.
06Measure
Landing LCP 1844 → 1268 ms on a throttled phone (390 px, 4× CPU, 250 ms round trips, 8 cold loads), half of Google's 2.5 s “good” line, now equal to first paint with zero layout shift.