You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
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
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.
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.
Activity
linear-code commentedon Sep 22, 2026
ENG-12656
masenf commentedon Nov 12, 2026
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) holdsutils/state.js, whose directevalcalls stop the minifier from renaming that chunk's top-level names.@radix-ui/themesmoves into the same chunk when the flag is on. Sourcemaps show the same modules in both builds; they are just minified worse. Making theevalcalls 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
TRACKING: close #7476/#6122 on a2 evidence; #7262 remainder filed as #…