Skip to content

perf/lcp-hints: aggregated lcp-preload warning keeps candidates for only one of N pages #1656

Closed

Description

@deniskern

Follow-up to #1074 / #1127 (closed).

The per-check details.page/candidates fix names one page correctly, but an aggregated multi-page lcp-preload warning retains candidate details for only one page. In a stored report from 2026-11-08 (v0.0.173), 170 affected pages have only one page-associated candidate; 169 pages cannot be proven or fixed from the report.

Request: retain bounded candidate/preload details per affected page, or export a page-addressed evidence list.

Closure: a two-page fixture with different missing-preload candidates retains both page-to-image associations, without projecting one page's image onto the other.

Triage

Confirmed by reading the code. lcp-preload is a per-page check, and the JSON report groups matching page checks into one finding. The grouped details deliberately represent a single page (see packages/report/tests/lcp-preload-grouping-1074.test.ts, which pins that behaviour and says rule_results stay the source for every page's evidence). So a grouped warning over N pages exposes the candidates of one page only, and the other pages' evidence is only reachable through the raw rule results. Related, closed: #1074, #1221, #516.

Acceptance Criteria

  • A grouped lcp-preload finding over several pages keeps bounded candidate details for each affected page, or exports a page-addressed evidence list
  • A two-page fixture with different missing-preload candidates retains both page-to-image associations
  • One page's candidate image is never projected onto another page's entry
  • The per-page evidence stays bounded in size on a site with hundreds of affected pages
  • The grouping test from perf/lcp-hints: lcp-preload warning does not name the likely-LCP image(s) #1074 is updated to match the new shape, and the report docs describe it

Generated by Claude Code

Activity

  1. added
    enhancement
    performance
    size: M
    on Nov 9, 2026
  2. added theissue type on Nov 9, 2026
  3. nc9 commented on Nov 12, 2026

    @nc9
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementperformancesize: M

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions