(Note · · 5 min read)
The Lighthouse score went up and the site feels the same
Chasing a number in a lab tool can improve the number without improving the experience. The metrics are worth understanding because each one names a specific thing that annoys people — but the score is a proxy, and optimising the proxy is not the same as fixing the annoyance.
By Md. Habibur Rahman Shohel, full-stack & AI product engineer in Dhaka
What each metric is actually about
Largest contentful paint is how long until the main thing appears. Interaction to next paint is whether the page responds when tapped. Cumulative layout shift is whether content jumps while being read. Each corresponds to a complaint a real person would make, which is why they are worth tracking.
A single composite score does not correspond to a complaint. Use it to find problems, then work on the specific metric that is poor and the specific element the tool names as responsible.
Lab and field measure different things
A lab run uses one simulated device and network from one location. Field data comes from real visits across real devices and connections, and it is what search ranking uses. They disagree routinely, and when they do the field data is the one describing your users.
Field metrics are reported at the seventy-fifth percentile, which means a quarter of visits can be worse than the figure shown. An average hides exactly the visits you would want to know about.
What actually moves them
- Serve the main image at the right size and format, and give the hero image priority rather than letting it queue behind everything else.
- Reserve space for anything that loads late — images, embeds, ads — with explicit dimensions. Almost all layout shift is unreserved space.
- Load fonts so text is visible immediately rather than invisible until the font arrives, and preload only the one the first screen needs.
- Ship less JavaScript. Responsiveness to a tap is mostly about how much work the main thread is already doing.
- Defer third-party scripts, and measure each one's cost — a single analytics or chat widget can dominate the interaction metric.
Notice that most of these are about restraint rather than technique. The fastest version of a thing is frequently the version that does not load.
Animation is cheap if you pick the right properties
Animating transform and opacity can be handled without re-laying out the page; animating position, size or layout properties cannot, and each frame costs. The same visual effect can be nearly free or expensive depending on which property it moves.
Respect the reduced-motion preference while you are there. It is two lines, and for people who need it the difference is not cosmetic.
Catch regressions in the pipeline
Performance decays through ordinary work — one more script, one unsized image. The fix that lasts is a check in continuous integration that runs on every pull request and fails when the budget is exceeded.
This site runs a build, end-to-end tests and Lighthouse on every pull request for that reason. A number measured once is a fact about one afternoon; a number measured on every change is a constraint.
Common questions
Is the Lighthouse score the goal?
No, it is a diagnostic. The composite number does not correspond to anything a user would complain about — use it to locate problems, then work on the specific metric that is poor and the element the tool names as responsible.
Why does my lab score differ from field data?
A lab run is one simulated device, network and location; field data is real visits across real devices, and it is what search ranking uses. When they disagree, the field data describes your users. It is reported at the 75th percentile, so a quarter of visits can be worse.
What actually improves Core Web Vitals?
Right-sized prioritised hero images, explicit dimensions for anything loading late, fonts that show text immediately, less JavaScript, and deferred third-party scripts measured individually. Most of it is restraint rather than technique.
How do I stop performance regressing?
Run a performance check in continuous integration on every pull request with a budget that fails the build. Performance decays through ordinary work — one more script, one unsized image — so a number measured once is only a fact about that afternoon.