Webinova — Web performance | webinova.fun

Webinova — Web performance | webinova.fun

Choose the next performance fix

Map the failing metric to one bounded investigation, change one area, and re-measure at the same percentile and device class. The goal is a defensible next step, not a promised outcome.

Start from the verdict, not from a list of tricks. If all three metrics pass at the 75th percentile in the device class you are judging, the next fix is to keep it that way; if one fails, that metric sets the agenda.

If LCP fails, the bounded investigation is: what is the largest content element, and what delays its paint? Look at media weight, render-blocking resources and server response. MDN's media optimization and HTML/CSS work areas usually cover this.

If INP fails, the bounded investigation is: which interactions are slow, and what runs during them? Look at long tasks and heavy event handlers. MDN's JavaScript work area is the usual home of the cause.

If CLS fails, the bounded investigation is: which elements move, and what arrives late? Look at unreserved space and content inserted after first paint. HTML and CSS work areas usually cover the fix.

Change one area at a time. A fix that alters media, JavaScript and CSS together cannot be attributed when the next measurement moves, and you lose the ability to learn from the result.

Re-measure at the same percentile and device class. A mobile 75th-percentile failure is re-checked on mobile at the 75th percentile; a desktop improvement does not clear a mobile failure.

Do not promise an outcome in advance. The procedure tells you where to look and how to verify; it does not guarantee that a given change will move the metric below the threshold.

Keep a short record of each change and its re-measurement. Over several cycles this becomes the most reliable guide to what works on your site, which is more useful than generic best-practice lists.

Use the web-vitals JavaScript library to keep a continuous reading while you iterate, sending LCP, INP and CLS to an analytics endpoint so a regression is visible soon after release.

The signature mark of this site, drawn as a plate

On narrow screens, swipe or scroll the plate sideways.

If a change makes a different metric worse, you have not finished: the all-three rule means a page passes only when all three pass at the percentile, so a trade that fixes INP and breaks CLS is a partial result.

Stop when all three pass at the judged percentile in the device class, and note the conditions. A pass is a statement about a population at a percentile, not a permanent property of the page.

Finally, keep the procedure bounded. One failing metric, one investigation, one change, one re-measurement. That loop is slower to describe than a list of tips and much faster to trust.

The order of work follows the verdict. Identify which of the three metrics fails at the judged percentile in the device class, and let that metric choose the investigation. Starting from a general list of optimizations instead of the failing signal risks improving a metric that already passes while the actual problem stays in place.

When LCP is the failing metric, the question is bounded to the largest content element and what delays its paint. The investigation stays inside the loading story: the weight of media, resources that block rendering, and the response that must arrive first. MDN's media optimization and HTML/CSS areas are where that work usually sits.

When INP is the failing metric, the question is bounded to interactions and what runs while they are being handled. Long tasks and heavy event handlers are the things to inspect, and MDN's JavaScript work area is the usual home of the cause. The aim is to understand the delay, not to guess at it.

When CLS is the failing metric, the question is bounded to which visible elements move and what arrives late enough to move them. Unreserved space and content inserted after the first paint are the usual suspects, and the fix normally lives in HTML and CSS. Naming the moving element is the first concrete step.

Changing one area at a time is what makes the loop informative. If media, JavaScript and CSS all change together and the next measurement moves, there is no way to attribute the movement to a cause. A single change followed by a single re-measurement keeps the result interpretable and keeps the record useful.

Re-measurement must match the original judgement: same percentile, same device class. A desktop improvement says nothing about a mobile failure, and an average says nothing about the 75th percentile. The loop closes only when the same condition that failed is measured again and all three metrics pass there.

  • LCP fail → investigate the largest element and what delays its paint.
  • INP fail → investigate long tasks and interaction handlers.
  • CLS fail → investigate unreserved space and late-arriving content.
  • One change per cycle, re-measured at the same percentile and device class.

Questions and answers

What if more than one metric fails?
Pick one and finish the loop: one failing metric, one bounded investigation, one change, one re-measurement at the same percentile and device class. The all-three rule means the page still fails until every metric passes, so the order matters less than completing each cycle without blending changes.
Can a fix for INP make CLS worse?
Yes, and that is why the procedure re-measures all three metrics and applies the all-three rule. A change that improves interactivity but introduces unexpected movement leaves the page failing overall, so the next cycle has to address the regression before the work is considered done.
How do I know the fix worked?
Only by re-measuring at the same 75th percentile and the same device class and seeing the failing metric cross its threshold while the others still pass. A lab improvement or a single fast run is not evidence; the field re-measurement at the judged percentile is what confirms the result.

Further reading