Repository navigation
PSI simulated LCP 32.4s vs observed LCP 2.3s — possible #17148 BeginFrame/Lantern issue #17204
Replies: 1 comment
|
Short version: yes to 1, 2 and 4. The 32 s is the headless paint stall from #17148, and Lantern then multiplies it. A fix is rolling out, and your real-user data isn't affected. Taking your questions in order: 1. Is this #17148? Very likely. 2. Can a late observed paint explain a 32 s simulated LCP? Yes. This follows directly from how Lantern builds its LCP estimate. Simulated LCP is the average of two simulations, an optimistic one and a pessimistic one (source). The pessimistic graph is built with
So the 2 s stall decides which requests get simulated. You described it exactly: ~11 scripts before the paint locally, ~220 on PSI. Downloading and running ~220 scripts on simulated Slow 4G easily produces tens of seconds, and averaged with the optimistic graph that gives 32 s. You can check this in your own PSI JSON: jq '.audits.metrics.details.items[0].observedLargestContentfulPaint as $lcp
| [.audits["network-requests"].details.items[] | select(.networkEndTime <= $lcp)]
| {finishedBeforeObservedLCP: length,
scripts: (map(select(.resourceType == "Script")) | length),
transferKB: (map(.transferSize // 0) | add / 1024 | floor)}' psi-report.jsonRun it on the PSI report and on your local report. The two sets of requests should account for the 32 s vs 7 s difference. The times are only approximate, because 3. Is there a site-side fix? Not for the stall itself. It reproduces on 19 KB static HTML pages, so nothing in Magento, LiteSpeed or Cloudflare causes it. The only thing you control is how much the stall gets multiplied, which depends on how many requests finish while the paint is delayed. Your clean local run still simulates LCP at ~7 s, with a paint at ~350 ms. That cost comes from the number of scripts finished around first paint, and it stays after the fix ships. Cutting that number is the one change that improves both. 4. Does this need a Chromium/Lighthouse fix? Yes, and both are in progress:
In the meantime, your CrUX field data is unaffected. That's what Search uses for Core Web Vitals. If you track PSI over time, one commenter on #17148 filters out stalled runs with 5. Are your reports useful? Probably not to the team any more. The maintainer asked in #17148 for no further PSI reports or site-specific data, since the cause is known and they're now tracking the rollout. The useful step is to re-run PSI once it reports Chrome 158 or later and confirm |
Uh oh!
There was an error while loading. Please reload this page.
PSI simulated LCP 32.4s vs observed LCP 2.3s — possible #17148 BeginFrame/Lantern issue
We are investigating a persistent PageSpeed Insights mobile LCP anomaly on:
https://thesewinghq.co.uk/
The site is Magento 2.4.8-p3, served through LiteSpeed/LiteMage and Cloudflare.
We have spent considerable time investigating this because PageSpeed Insights has repeatedly reported an LCP of approximately 32–35 seconds, despite the site loading normally in real browsers.
We now have complete Lighthouse reports from both PageSpeed Insights and a clean local Chrome Incognito Lighthouse test.
PSI — Lighthouse 13.4.1
Clean local Chrome Incognito — Lighthouse 13.4.1
The PSI result therefore has:
observedLoad < observedFCP
and:
observedFCP == observedLCP
This appears to match very closely the signature described in open Lighthouse issue #17148, “Observed FCP/LCP inflated by whole seconds in headless runs (viz ThrottleUnresponsiveClient BeginFrame throttling) — reproduces on PSI”.
There is a further potentially important difference in the reports.
Before the clean local observed LCP at approximately 349 ms, only about 50 requests had started, including roughly 11 scripts.
Because PSI does not register observed LCP until 2.3 seconds, approximately 268 requests have started by then, including roughly 220 scripts.
We are therefore concerned that an artificially delayed observed paint in PSI is allowing a much larger set of requests into Lantern's pre-LCP dependency modelling, potentially magnifying the initial headless rendering anomaly into the 32.4-second simulated result.
We have already established that this is not a 32-second origin response or image download. The homepage is being served from LiteMage cache, with measured server response around 80 ms, and the LCP image itself downloads rapidly.
Our questions are therefore very specific:
We are specifically not looking for general PageSpeed optimisation advice. We are trying to understand and, if possible, correct the very large discrepancy between observed rendering and PSI's simulated LCP.
All reactions