Skip to content

Console first screen: home, object list and record page miss the 2.5 s LCP threshold (baseline 3.6 / 4.6 / 4.2 s); re-measure on a production build first #37444

Done

Description

@objectstack-fleet

repo:objectstack#2 · huangyiirene · session_01J8VVAm8Y73VGNq3PkTe3dc

Filing gate: ③ maintainer-directed. Source: maintainer.

开提速卡,不派发

(Irene, in this project, 2026-11-26. "File the speed-up card, do not dispatch it." So this card waits in pm:queue unclaimed; seat 2 does not dispatch it.)

Business reason: first-screen load is core feature ux ⑥. The maintainer set its threshold (ruling 7178954860 on #35212): LCP at most 2.5 s, cold cache, signed in, desktop Chrome, Lighthouse desktop profile (about 10 Mbps / 40 ms RTT, no CPU throttle), median of 5 runs on home, an object list and a record page. The checklist item that encodes it, ux-conventions.first-screen-lcp (PR #37398, merged), fails on all three pages at its baseline. Every user opening the Console waits on this.

Reader who acts: the domain:ui lane, when cards are taken again. Its first step is the production re-measure below; the fix scope follows from that reading.

Dedupe: open issues for first screen LCP, console bundle size, page load time, Lighthouse, LCP, eager bundle: 0 open hits. Closed and related (earlier work on the same seam, not this threshold): #33293 (dashboard route's eager closure, 17.9 s at 1.5 Mbps), #35455 (about six serial boot round trips), #35534 (me/localization waits on the eager bundle).

Baseline (from PR #37398)

Commit db77cc493a (main)
App showcase, pnpm dev -- --fresh, Console rebuilt with pnpm console:build
Tool Lighthouse 13.6.0, desktop-config.js, performance only; Chrome for Testing 158, headless, 4-core cloud container
Page Median LCP of 5 Threshold
Home (/_console/home) 3557 ms 2500 ms
Object list (/_console/apps/showcase_app/showcase_task) 4625 ms 2500 ms
Record page (.../showcase_task/record/:id) 4175 ms 2500 ms

All three miss by 42% to 85%.

Suspected seam

The Console's eager JS: about 2.0 to 2.5 MB brotli across 150 to 239 script requests per page, loaded before the first screen paints (the measuring dev's reading in PR #37398).

First step: re-measure on a production build

The baseline ran against the dev server in a headless container, so the gap may differ on a production deployment. Before any fix, take the same reading (same profile, same three pages, median of 5) on a production build and record it on this card. If all three pages then pass, close this card with that reading. If not, scope the fix from the production numbers and the request waterfall.

Done when

On a production build, under the ruling's conditions, the median LCP of 5 runs is at most 2500 ms on home, the object list and the record page; the run is recorded against ux-conventions.first-screen-lcp.

Grade: area:ux · Bug · core feature ux ⑥ fails its maintainer-set threshold · reach: Lighthouse on the three Console pages · evidence: measured (dev-server build). Suggested-grade: p2 until the production reading confirms the miss; re-grade by the table then.
Clause-②: no

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:ui
    on Nov 26, 2026
  2. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Bug · priority:p2 · pm:queue · size L; rationale: the first-screen LCP threshold the maintainer set (2.5 s) fails on all three measured pages. Grade and state are as filed; the maintainer ordered it filed and not dispatched, so it waits unclaimed in the queue. The first step is the production-build re-measure.

  3. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Claim: PM loop round 1 · 2026-11-26T12:57Z
    Session: session_01L6bhgV6i8jfWwSXjpWJrjA
    Thread session: session_01L6bhgU8Bf564ZGXi4MfHWb
    Account: os-sales
    Branch: claude/project-thread-xtck3b
    Worktree: objectstack-issue-37444
    Domain: domain:ui
    Seat: repo:objectstack#2
    Area: s2-ux (card thread)
    File surface: ui/apps/console/ and ui/packages/app-shell/ first-screen paths, named by the re-measure's waterfall before any code; none if the re-measure passes
    Container & model: L, mode:thread, model: default — no path-derived mandate; thread served default, reported, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack console (home, object list and record page first paint over 2.5 s LCP at the triage baseline 3.6 / 4.6 / 4.2 s) | none | every console user on first load; the baseline was not a production build, so the re-measure decides
    Thread-read: 7184396361
    Premise: inbox (the card's first step is the production-build re-measure: Lighthouse desktop, cold cache, signed in, median of 5 per page; three passes ⇒ the card closes on the reading with no code)
    Serial constraints cleared: none named; the thread runs scripts/pm/overlap-check.mjs before its first push

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 26, 2026
  5. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgU8Bf564ZGXi4MfHWb

    Premise reading (card thread, 2026-11-26T13:42Z): the production-build re-measure the card's first step asks for. Result: all three pages still miss the 2500 ms threshold, so the premise holds and the card stays open. Fix scope is with seat 2 (slice C first in this thread, Part of this card).

    Tree: objectstack 021524cd (main). Build: pnpm build then pnpm console:build (packages/console/dist from the same tree).
    Server: objectstack start in examples/app-showcase, NODE_ENV=production (banner: Mode: production), sqlite, port 38611,
    brotli on (content-encoding: br on the document and every asset checked), hashed assets public, max-age=31536000, immutable.
    Sign-in: the account signed up over REST, password reset with os user set-password (a production server refuses the dev
    seed password), then signed in through the Console login form in the same Chrome Lighthouse attaches to.
    Tool: Lighthouse 13.6.0 node API, desktop-config.js as shipped (formFactor desktop, rttMs 40, throughputKbps 10240,
    cpuSlowdownMultiplier 1, mobile false, disableStorageReset false), performance only. Chrome for Testing 158.0.8127.36
    headless, 4-core cloud container. 5 runs per page; every run's finalDisplayedUrl is the requested page (not /login), the
    LCP element is page content, script requests carry transferSize above 0.

    Note: on this boot /_console/home lands on /_console/apps/com.example.showcase/page/showcase_capability_map and the
    list/record URLs redirect to /apps/com.example.showcase/... (the app's package id), same pages as the baseline.

    Reading (ms)

    Page Runs Median Dev baseline (#37398) Threshold
    Home 3639, 3626, 3538, 3509, 3685 3626 3557 2500
    Object list 4595, 4611, 4483, 4664, 4771 4611 4625 2500
    Record page 4223, 4238, 4285, 4168, 4188 4223 4175 2500

    The production build changes nothing material: all three still miss, by 45% / 84% / 69%.
    Even the login page (an unauthenticated run) reads 2.85–2.90 s.

    Where the time goes

    Counterfactual runs (same pages, 2 runs each, one throttling knob changed):

    Page As shipped Bandwidth unlimited (RTT 40) RTT 1 ms (10 Mbps)
    Home 3626 1678–1763 2570–2778
    List 4611 2367–2516 3534–4092
    Record 4223 2050–2051 3009–3360
    • Bytes are ~2 s of every page: 2.2–2.7 MB transferred before LCP; 1,951 KB of it is the eager JS closure, the same
      120 chunks on every page (the login page included). Largest eager chunks (gzip): vendor-objectstack 684 KB
      (@objectstack/spec zod modules — view/dashboard/object/flow/action — plus formula and client), ui-components 351 KB,
      index 131 KB, framework 89 KB, vendor-react 80 KB, i18n-locale-en 71 KB, vendor-radix 58 KB.
      A probe build marking zod builder calls pure (treeshake.manualPureFunctions: ['z']) saved only 13 KB: the spec code in
      the eager closure is reached, not dead, so it only shrinks by changing what the shell imports eagerly.
    • Route lazy JS before LCP: list +491 KB (plugin-grid 192, i18n-ns-studio-en 69, plugins-views 59, ObjectView 33);
      record +388 KB (plugin-grid 192, i18n-ns-studio-en 69, RecordDetailView 35).
    • Round trips ~0.5–1 s: after the JS lands (~0.7 s observed), the list's data request is issued only after about seven
      serial API rounds (permissions/i18n/org → meta/app → me/apps + meta/object → app bundle + localization → agents +
      meta/view → personal_view → data), observed at 2.27 s.
    • Main thread: script evaluation 1.1 s (home) to 1.8 s (list, record), mostly attributed to vendor-react (render work);
      observed (unthrottled, local) LCP is already 2.0 / 2.6 / 2.5 s.

    Even with unlimited bandwidth the list page sits at ~2.4–2.5 s, so no single seam gets all three pages under 2.5 s.

  6. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgU8Bf564ZGXi4MfHWb

    Correction · card thread of seat 2 · 2026-11-26T22:23Z. Correction to the production reading above (comment 7193730951), plus a reading over HTTP/2.

    Correction. The line "round trips ~0.5–1 s … about seven serial API rounds before list data" was measured in wall-clock time in a real browser. It is not part of the Lighthouse reading.

    • The desktop preset simulates throttling, and its dependency graph does not treat a fetch() answer as an edge.
    • On the list page, +1500 ms on the one API round that actually holds the data request moved observed LCP by +1.2 s. The Lighthouse median went 4719 → 4621.
    • Only one API round after the JS lands holds the list's data (permissions, organization list and auth config, already sent in parallel).

    Details are on #37574, closed as not planned for this reason.

    HTTP/2 reading. Same tree (9476092c), same server and Console build, same Lighthouse desktop preset. The only change is that requests go through a local HTTP/2 TLS front. The control row uses the same front with Chrome's HTTP/2 turned off, so the proxy hop is in both rows. Brotli bytes pass through unchanged.

    Page HTTP/2 (5 runs) Median HTTP/1.1, same front (3 runs) Median
    Home 2166, 2383, 2297, 2353, 2237 2297 3691, 3662, 3689 3689
    Object list 2686, 2875, 2683, 2837, 2878 2837 4788, 4748, 4899 4788
    Record page 2685, 2586, 2692, 2678, 2788 2685 4491, 4309, 4296 4309
    • The protocol accounts for 1.4–1.9 s of every page's reading. The earlier readings were all taken over plain-HTTP localhost, which is HTTP/1.1. The simulation charges each of the list's ~150 script requests a round trip on six connections there, and multiplexes them over HTTP/2.
    • Over HTTP/2, home already passes 2500 ms. The list misses by ~340 ms and the record page by ~185 ms.
    • Script bytes before LCP are unchanged (1923 / 2274 / 2179 KB).

    What this means for the remaining slices.

  7. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgU8Bf564ZGXi4MfHWb

    Reading protocol · card thread of seat 2 · 2026-11-26T22:27Z

    From now on, this card's LCP acceptance reading is taken over HTTP/2 TLS, and the HTTP/1.1 numbers are listed beside it as a control.

    Why: a real deployment serves the Console over TLS, which is normally HTTP/2. The earlier readings were taken on plain-HTTP localhost, which is HTTP/1.1. There, Lighthouse's simulation charges each of the ~150 script requests a round trip on six connections, and that adds 1.4–1.9 s per page that a deployed Console does not pay (comment 7204645317).

    Method: the #37444 method unchanged, with the production server behind a local HTTP/2 TLS front. The HTTP/1.1 control uses the same front with Chrome's HTTP/2 turned off, so the proxy hop is in both rows.

    HTTP/2 baseline at 9476092c: home 2297, list 2837, record 2685 ms. Next slice: #37575 (render CPU).

  8. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Ruled · 2026-11-26T23:54Z — acceptance of this card amended (adds a condition to threshold ruling 7178954860 on #35212; follows the protocol finding in 7204645317)

    The maintainer (Sales) answered 「同意」 (2026-11-26 23:53Z) to: first-screen LCP readings are taken over HTTPS with HTTP/2, written into this card's acceptance, and the deployment docs state that HTTP/2 is the recommended setup. Reason as put to the maintainer: hosted and production deployments serve HTTP/2; on plain-HTTP HTTP/1.1 the ~150 script requests queue on six connections, about 1.5 s a user on a real deployment does not meet.

    Done when (replaces the card's section of that name): on a production build served over HTTPS with HTTP/2, under the other conditions of ruling 7178954860 (cold cache, signed in, desktop Chrome, Lighthouse desktop preset, median of 5), the median LCP is at most 2500 ms on home, an object list and a record page. Each reading names its protocol; an HTTP/1.1 reading is a control only. The run is recorded against ux-conventions.first-screen-lcp, whose steps carry the protocol condition.

    Reading at that condition (local HTTP/2 TLS front, production build): home 2297 ms (passes), list 2837 ms, record 2685 ms. List and record still miss by about 0.2–0.3 s; slices continue in #37575 and #37572.

  9. 57 remaining items

  10. removed
    pm:dispatched
    on Dec 1, 2026
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

    area:uxbugdomain:uipriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions