Repository navigation
Closed
Labels
Description
Summary
perf/lcp-hints → check lcp-preload reports "N likely-LCP image(s) loaded without preload" per page, but neither the report JSON nor rule_results names which image(s) it means. On pages that already preload their hero (<link rel="preload" as="image" fetchpriority="high">), nobody can tell which candidate triggered the warning, so the hint can neither be fixed nor confirmed as a false alarm.
Observed (v0.0.131)
- Report JSON:
checks[].items[]only carry{ id: <page url>, label: "1 likely-LCP image loaded without preload" }. project.db→rule_resultsforperf/lcp-hints/lcp-preloadwith statuswarn:itemsanddetailsarenullin all 629 warn rows of one project; onlymessageandvalue("2") are set.- Example page: https://www.alpensattel.de/products/alpensattel-3-0-komfort (hero image is preloaded with
fetchpriority=high, still reported).
Expected
Per warned page, the candidate image(s) in items/details, for example:
{ "src": "https://…/image.jpg", "reason": "above-fold, eager, no matching preload", "preloads": ["https://…/hero.jpg"] }so the result names the image and the preload hrefs that were compared.
Related
#516 (small logos/avatars counted as likely-LCP) — with the candidate URL in the output, such cases would be visible directly.
Acceptance Criteria
- A warned
lcp-preloadcheck onperf/lcp-hintsnames each likely-LCP candidate image it counted (resolved URL) and the preload hrefs it compared them against, in the check'sdetails, in the JSON report and in storedrule_results; the list is bounded per page - A page whose hero image is preloaded with
<link rel="preload" as="image">(with or withoutfetchpriority="high", matching byhreforimagesrcsetafter URL resolution) is not warned for that image - The per-page count message stays, and the earlier decision not to dump images into
items(Improve LCP information #16) is either kept (details only) or explicitly revised - Rule tests cover a preloaded hero (no warning), an unpreloaded hero (warning naming its URL) and a page with more candidates than the bound
-
docs/rules/perf/lcp-hints.mdxdescribes what the check reports and where the candidate URLs appear
Activity
WilliamK112 commentedon Oct 24, 2026
I would like to take this. I will keep the existing per-page count and leave
itemsempty, add boundeddetailswith each unmatched candidate’s resolved URL plus the resolved preload URLs compared against it, preservehref/imagesrcsetmatching after URL resolution, add focused preloaded/unpreloaded/bound regressions, and update the rule docs and changelog.fix(rules): expose LCP preload evidence squirrelscan#1074
fix(rules): expose LCP preload evidence squirrelscan#1074
fix(rules): expose LCP preload evidence squirrelscan#1074
fix(rules): expose LCP preload evidence squirrelscan#1074
fix(rules): expose LCP preload evidence squirrelscan#1074
fix(rules): expose LCP preload evidence #1074
nc9 commentedon Oct 26, 2026
Fixed in #1127 (main 4e891ec): the lcp-preload check now names the page, each likely-LCP candidate and the preload hrefs compared, in bounded details. Thank you @deniskern for the report, the example made it easy to reproduce. Ships in v0.0.134.