A poor Largest Contentful Paint (LCP) score is not always caused by the page itself: server response time, CDN delivery, or users’ connection conditions may be responsible. Barry Pollard of the Chrome web performance team explained how to systematically trace the source of the problem.
What LCP Measures
LCP is a Core Web Vitals metric that measures how long it takes for the largest content element in the browser’s viewport to appear. This could be an image or a block of text, such as a heading or paragraph.
Start with PageSpeed Insights Data
According to Pollard, after receiving a poor LCP warning in PageSpeed Insights (PSI), site owners and SEO specialists often jump straight to diagnostics in Lighthouse or Chrome DevTools. However, PSI itself contains clues that can help identify where to look for the problem.
First, determine what data the service is showing. Chrome User Experience Report (CrUX) data is based on anonymized measurements from real Chrome users. It may relate to a specific URL or be aggregated across the entire site.
If enough measurements have been collected for a URL, PSI displays data for that page. Otherwise, it uses data for the site as a whole. The score a specialist sees therefore does not necessarily describe the page being tested.
Check Time to First Byte
Pollard recommends looking at Time to First Byte (TTFB)—the time it takes to receive the first byte of the server’s response. If a delay occurs at this stage, optimizing page elements alone will not address its cause.
A slow TTFB may mean that the request takes too long to reach the server or that the server takes too long to prepare a response. These situations can have different causes, so the metric alone is not enough to make a diagnosis.
Compare Real-User Data with a Lighthouse Test
The next step is to check whether the delay can be reproduced in a Lighthouse lab test. Pollard suggests looking for the “Initial server response time” audit.
Lab results are synthetic: they come from a simulated visit rather than being collected directly during user visits. Their advantage is repeatability, which helps isolate the cause of a problem.
If Lighthouse shows a much faster response than the real-user data, the test has not reproduced the delay users experience. This is a reason to look for differences in test conditions, not to assume the user-facing problem has been resolved.
Consider the Impact of CDN and Geography
A content delivery network (CDN) can serve a cached copy of a page faster than the origin server, potentially masking problems with that server. When a page is first requested and no cached copy is available, the CDN may fetch it from the origin server; if the server responds slowly, this adds delay.
To investigate performance outside the usual cache, Pollard suggests testing a slow page with an additional URL parameter, such as “?XYZ”, or testing a page that is rarely requested. The result depends on the caching settings: adding a parameter will not necessarily bypass the cache in every configuration.
Pollard also recommends comparing TTFB by country using CrUX data; he mentions Treo as a tool for this. If the metric is worse in certain countries, check your own analytics to see what share of traffic comes from them. CrUX itself does not reveal traffic volumes by country, apart from indicating whether there is enough data to display.
User devices can also affect performance in certain regions: for example, widespread use of low-cost mobile phones is one possible reason for slow performance. Not all tools show even the available country-level CrUX data.
Fix the Confirmed Cause
Pollard recommends first making sure the problem can be reproduced, then choosing a fix. For a server delay, check whether the server has enough resources, whether the code is overly complex or inefficient, and whether the database needs tuning.
If the connection is slow for users in certain regions, consider whether a CDN is needed and investigate why significant traffic is coming from those regions—for example, whether it is related to an advertising campaign.
Redirects, including advertising redirects, are another possible source of delay. Pollard estimates that each one can add around 0.5 seconds to TTFB. He recommends shortening chains where possible: use the correct final URL from the start to avoid redirects to www or HTTPS, and do not use multiple link-shortening services in succession.
Source: https://www.searchenginejournal.com/google-shows-how-to-fix-lcp-core-web-vitals/537146/
Discussion
Sign in or create an account, to join the discussion.