Core Web Vitals debugging is most effective when you separate real-user evidence from controlled lab tests, identify the slowest part of the user journey, and verify one fix at a time. This guide provides a repeatable checklist for diagnosing LCP, INP, and CLS problems across HTML, CSS, JavaScript, images, fonts, APIs, and hosting.
Overview
Core Web Vitals are practical signals for three parts of page experience: loading, responsiveness, and visual stability. The metrics are useful for technical SEO, but they are also debugging clues. A poor result tells you that something needs investigation; it does not automatically identify the responsible file, request, component, or team.
- LCP (Largest Contentful Paint) measures when the main visible content is rendered. A large hero image, heading block, or text area is often the LCP element.
- INP (Interaction to Next Paint) measures how quickly the page responds to interactions such as clicks, taps, and key presses. Long JavaScript tasks are a common cause of poor responsiveness.
- CLS (Cumulative Layout Shift) measures unexpected movement of visible content during the page lifecycle. Images without reserved space, injected banners, and late-loading fonts can contribute.
As a working reference, commonly used “good” targets are LCP at or below 2.5 seconds, INP at or below 200 milliseconds, and CLS at or below 0.1. These values are assessed using real-user data, typically at the 75th percentile. Check the current metric definitions and guidance before publishing a performance standard, because browser tooling and recommendations can change.
Start with field data when available. Field data reflects the devices, networks, browsers, geographic locations, and usage patterns of actual visitors. Lab tools run a controlled test and are better for reproducing a problem, inspecting a trace, and comparing code changes. A page can pass a lab test while real users struggle on slower connections, or fail a lab test while field results remain healthy.
Checklist by scenario
When LCP is slow
- Confirm the affected page template and device category. Do not assume that a homepage result represents product pages, articles, checkout screens, or authenticated views.
- Identify the LCP element in a browser performance trace or a suitable performance report. Record whether it is text, an image, a video poster, or another element.
- Inspect the request chain. A slow server response, redirect, render-blocking stylesheet, late-discovered image, or delayed API response can postpone the LCP element.
- For a hero image, use an appropriately sized responsive source, avoid loading a needlessly large file, and make the resource discoverable early. Do not lazy-load the image that is expected to be the LCP element.
- Review server response time and caching at the origin, CDN, and application layers. A fast asset cannot compensate for a document that arrives late.
- Check font behavior if the LCP is text. Reduce unnecessary font variants, use suitable font-display behavior, and test whether the fallback-to-web-font transition delays visible content.
- Remove work that blocks the first render, but measure before and after. Combining or rearranging assets without understanding their role can make debugging harder.
Use the Browser DevTools Network Tab Guide to inspect request timing, headers, blocking relationships, and slow API calls. For deployment-level issues, the Website Deployment Checklist provides a useful companion review.
When INP is slow
- Find the interaction that produces the worst delay. Test menus, search, filters, forms, accordions, modals, and navigation rather than relying on a single page load.
- Use the performance trace to locate long tasks around the interaction. Separate input delay, processing time, and presentation delay where the tool exposes those phases.
- Look for large JavaScript bundles, repeated rendering, expensive layout calculations, third-party scripts, and event handlers that do too much work synchronously.
- Break long tasks into smaller units. Defer nonessential work, move suitable computation away from the main thread, and avoid updating more DOM than the interaction requires.
- Check whether a framework component rerenders an entire page for a small state change. Narrowing the update scope can improve responsiveness without changing the visible feature.
- Retest on a lower-powered device or a throttled environment. A desktop test may conceal the main-thread cost experienced by mobile users.
Do not treat every JavaScript file as equally responsible. Start at the interaction, identify the blocking task, and connect that task to a component, dependency, or third-party feature. If the issue involves an API, compare server timing with client-side processing using the API Request Debugging with cURL guide.
When CLS is high
- Record the shifting elements and the moment they move. A layout shift can occur during initial load, after an interaction, or when late content arrives.
- Reserve dimensions for images, videos, embeds, advertisements, and other replaced content. Explicit width and height attributes or an appropriate aspect-ratio rule help the browser allocate space.
- Inspect banners, consent messages, recommendation modules, and notification bars that are inserted above existing content. Prefer reserved containers or overlays that do not push the page unexpectedly.
- Review font loading and fallback metrics. A font swap can change line breaks and move nearby content, especially in headings and navigation.
- Check animations and transitions. Animate transform and opacity where appropriate instead of properties that trigger repeated layout changes.
- Test after scrolling and interacting. A page that looks stable at the top can still shift when lazy-loaded sections, images, or widgets appear.
CLS debugging is easier when you capture a before-and-after recording and name the exact element that moved. Avoid broad fixes such as disabling all lazy loading or hiding content merely to make a report look better.
When results disagree
First compare the test conditions: URL, device, browser, connection, cache state, geographic location, and page state. Then compare the measurement window. Field data may represent a rolling period, while a lab result represents one controlled visit. Treat a disagreement as a diagnostic signal, not as proof that one tool is wrong.
What to double-check
- Page scope: Group results by template and user journey. Fixing one landing page does not necessarily improve a slow application route.
- Real LCP identity: Confirm the element rather than assuming the largest image is responsible. Text can be the LCP element, and the bottleneck may occur before it is painted.
- Resource priority: Verify that critical content is discovered and requested early, while below-the-fold work remains deferred.
- Cache and deployment behavior: Test a realistic cold visit and a repeat visit. Confirm that cache headers, compression, CDN behavior, and asset versions match the intended release.
- Third-party code: Record which scripts are essential, which are optional, and which load before interaction. Remove, delay, or isolate scripts only after checking their functional requirements.
- Accessibility: Performance changes must not remove labels, keyboard access, focus indicators, or meaningful content. Review the Web Accessibility Testing Workflow alongside performance work.
- Build consistency: Confirm that the tested build includes the same JavaScript, CSS, images, fonts, and server configuration that users receive.
Keep a small performance record for each investigation: URL or template, test date, field segment, lab conditions, metric values, suspected cause, change made, and verification result. This turns a one-time audit into a useful engineering trail.
Common mistakes
- Optimizing the score instead of the experience: A score is an indicator. Always connect it to a visible loading, interaction, or stability problem.
- Testing only a fast desktop connection: Repeat tests under conditions that represent the visitors and devices you need to support.
- Changing several systems at once: A simultaneous image, JavaScript, hosting, and CSS rewrite makes the result difficult to attribute. Use small, reversible changes when possible.
- Lazy-loading critical content: Deferring the LCP image or above-the-fold content can delay the very resource the page needs first.
- Using preloading indiscriminately: Preload only resources that are genuinely critical and correctly matched. Excessive priority hints can compete with other important work.
- Ignoring post-load shifts: Check the page after it becomes interactive, not only during the first screenshot.
- Assuming a passing average protects every visitor: Aggregate results can conceal poor experiences for a particular template, device class, region, or connection type.
When to revisit
Run this checklist before a major release, after changing a page template, when adding a third-party widget, and whenever hosting, CDN, image, font, or JavaScript delivery changes. Recheck after seasonal planning cycles if traffic, content mix, or campaign landing pages change. A new CMS component, personalization rule, consent flow, or advertising placement can introduce performance regressions even when application code appears unchanged.
For a practical release routine, choose representative URLs, capture a field-data baseline when available, run repeatable lab tests, and save traces for any regression. Give each suspected cause an owner and a verification step. After deployment, retest the same URLs and conditions; then allow enough time for field evidence to reflect the change before drawing a final conclusion.
Keep the checklist current when metric definitions, browser tooling, or recommended optimization techniques change. The most reliable workflow is not a single audit: it is a short loop of measure, isolate, change, verify, and document.