Skip to content

Console first screen: the eager JS closure (1.95 MB, same 120 chunks on every page) is ~2 s of LCP; slim what the shell imports eagerly #37572

Todo

Description

@objectstack-fleet

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Filing gate: maintainer ruling on #37444 at 2026-11-26 13:43Z (「先做最小一刀,其余立卡排队」: slice C rides #37444, the other seams queue as their own cards) · Source: fleet (production re-measure on #37444, comment 7193730951)

What happens

Reading on a production build (objectstack 021524cd, brotli on, Lighthouse 13.6.0 desktop config, 5 runs per page; full method in #37444 comment 7193730951): the median LCP is Home 3626 ms, Object list 4611 ms, Record 4223 ms, against a 2500 ms threshold.

Bytes are about 2 s of every page. 2.2–2.7 MB is transferred before LCP, and 1,951 KB of it is the eager JS closure: the same 120 chunks on every page, the login page included. The largest eager chunks (gzip) are vendor-objectstack 684 KB (@objectstack/spec zod modules for 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 and vendor-radix 58 KB. With bandwidth unlimited (RTT 40) the pages drop to 1.7 / 2.4 / 2.1 s.

A probe build that marked zod builder calls pure (treeshake.manualPureFunctions: ['z']) saved only 13 KB. The spec code in the eager closure is reached, not dead, so it shrinks only by changing what the shell imports eagerly.

Expected

Not this card: route-level lazy chunks before LCP (slice C, in progress as Part of #37444), the serial boot API rounds, render CPU (sibling cards).

Related: #37444, #37398.

Category ①: a user-visible experience defect with a named place and a repeatable reading (every console user waits 3.6–4.6 s on the first screen).
Priority: p2 — the grade of parent #37444; slow but working, on every first screen, not a wrong-data or security case.
Business reason: everyone who opens the console waits on the first screen every session; without this seam the pages can't reach the 2.5 s threshold #37444 sets.
Reader: seat 2 area s2-ux (repo:objectstack#2) picks it from the queue after slice C lands on #37444.
Dedupe: console eager chunk first screen 22 hits, vendor-objectstack chunk 41 hits; open overlap only #37444 (the parent; this card is its queued seam). Closed neighbours #25925 (spec subpath duplication, fixed) and #26131 / #34927 (budget check) are earlier, different seams.

Activity

  1. added
    bug
    priority:p2
    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 console's eager JS closure (1.95 MB, the same 120 chunks on every page) costs about 2 s of first-screen LCP. Queued as its own seam under the maintainer's 13:43Z ruling on #37444 (「先做最小一刀,其余立卡排队」). Slow but working, so p2, like the parent.

  3. added
    pm:queue
    on Nov 26, 2026
  4. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Claim: PM loop round 1 · 2026-11-27T01:09Z
    Session: session_01L6bhgV6i8jfWwSXjpWJrjA
    Thread session: session_01L6bhgUFcdpjgtgSfn3qZuv
    Account: os-sales
    Branch: claude/project-thread-575qr3
    Domain: domain:ui
    Seat: repo:objectstack#2
    Area: s2-ux
    File surface: the Console shell's eager import closure (ui/apps/console, ui/packages/app-shell and the packages it pulls in at boot), lazy boundaries and their loaders, bundle-split config, pins on what the first screen loads, one changeset; exact files named in the thread's first report after the h2 baseline
    Container & model: L, mode:thread (card thread implements, no os-dev), model: default — no path-derived mandate, effort: high
    Clause-②: no expected (load order only; what the Console shows does not change) — the PR states its own
    Metadata-protocol: none
    Responsibility: objectui console (the first screen loads ~1.95 MB of eager JS, the same ~120 chunks on every page, about 2 s of LCP) | none | every Console user on first load; reachable today
    Thread-read: none
    Premise: holds (#37444's production reading 7193730951 and the HTTP/2 reading under ruling 7205984444; the thread re-takes the h2 baseline on main first)
    Serial constraints cleared: #37722 merged (sidebar cascade, Part of #37575); #37725 in the merge queue (docs and checklist only); the thread re-runs overlap-check before its first push
    Relation: the PR says Part of #37444 (and Fixes #37572 only if the eager-closure card is delivered whole); this thread also holds #37444 and #37575 from the previous thread

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 27, 2026
  6. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Landed (part) and handed back · 2026-11-28T14:08Z

    Answers the triage knock 7240430074 on this seat's mailbox. PR #37786 merged at 2026-11-27T05:16Z (Part of #37572): the Console's eager first-load closure went from 1,996,960 to 1,899,348 bytes gzipped; #37826 back-filled the budget baseline. The list and record pages are still over the 2500 ms target of #37444. The next measured cut, exporting the narrow sub-schemas the first screen reads, is card #37805.

    Release: this seat's area:ux partition is closed (maintainer, 2026-11-27 15:43Z: 「ux 区 可以下班了」), so this card goes back to pm:queue for the area:ux seat with nothing in flight, and the claim 7207061751 (thread session session_01L6bhgUFcdpjgtgSfn3qZuv) ends here. Branch claude/project-thread-575qr3 holds only merged work.

  7. added
    pm:queue
    and removed
    pm:dispatched
    on Nov 28, 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:uipm:queuepriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions