Skip to content

Confirm: frontend_lazy_bundled_libraries=True added ~65 KB of initial JS on every page of the QA app (possible regression against #7078's claim) #7262

Closed

Description

@masenf

This issue tracks confirming a potential regression, not a confirmed defect.

#7078 introduced frontend_lazy_bundled_libraries. In the 0.9.12a1 pre-release QA app (markdown + shiki, memo cards, a dynamic rx.icon, frontend_path="/app"), turning the flag on increased the decoded JavaScript delivered for the initial load on every page:

page flag off flag on delta
/app/ 1 177 996 B 1 243 249 B +65 253 B
/app/about +3.7%
/app/components +5.4%

Fewer requests (17 → 14 files), but a single esm-*.js module is about 65 KB larger than the shiki and icon chunks it displaces. The direction was consistent across all three pages. Caveat: Playwright response.body() byte counts on one app, not wire bytes, and the measurement was not re-verified by a second agent.

Ask: measure wire bytes on a larger app with the flag on and off, then either fix the chunking so the lazy path does not grow the initial bundle, or reword #7078's changelog claim.

Evidence: 0.9.12a1 pre-release QA FINDING-022 in build_prod_export/ (NOTES.md, out/) and FINDINGS.md.

Activity

  1. added theissue type on Sep 22, 2026
  2. linear-code commented on Sep 22, 2026

    @linear-code
  3. added
    release-train
    on Nov 11, 2026
  4. masenf commented on Nov 12, 2026

    @masenf
    CollaboratorAuthor

    Re-measured on the published 0.11.0a2 in prod (single port), with bundle_library(...) for lucide icons and a recharts chart. #7276 fixed what this issue reported. The flag now saves 525.6 KB decoded (147.4 KB gzip) on pages that don't use the deferred library.

    A smaller cost remains, with a different cause. On a page that uses recharts directly, the flag adds 71.5 KB decoded (5.3 KB gzip). The shared chunk it creates (preload-helper-*.js) holds utils/state.js, whose direct eval calls stop the minifier from renaming that chunk's top-level names. @radix-ui/themes moves into the same chunk when the flag is on. Sourcemaps show the same modules in both builds; they are just minified worse. Making the eval calls indirect shrinks the chunk by about 89 KB in a scratch build. 0.10.1 behaves the same.

    This is tracked separately in #7860, so this issue stays closed.


    Generated by Claude Code

  5. added a commit that references this issue on Nov 12, 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

    release-train

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions