Bundle: first screen under budget, total-JS budget 300 KB (#689) #696

Closed
kayg wants to merge 0 commits from issue/689-bundle into dev
Owner

The first screen exceeded its JavaScript and CSS budgets on dev. Group the initial module graph and defer SignIn, TrashList, LinkCard, TagPicker and ContextMenu with their CSS. Warm them after first paint and retain content and dismissal handling while cold chunks load. Recover failed imports safely, including WebKit cached fetch failures and offline cache URLs.

Brotli KB (1024 bytes), fresh builds of a779a46 and this branch:

Metric Before After Budget
First-screen JS 255.479 237.443 240 unchanged
First-screen CSS 22.615 20.096 22.1 unchanged
Total JS 307.847 299.715 260 → 300 approved

The one-line budget reason references #689: the app precaches everything for offline; the first-screen budgets are the ones that gate perceived speed.

The exact CI bundle gate passes. Svelte check has zero errors and 14 existing warnings. Editor and UI Vitest: 299 and 38 tests pass. Apps/web has no Vitest suites; its six Node tests pass. All 18 Playwright projects were covered in sequential shards with one worker: 2,374 unique cases pass, 1,478 skip, six failures remain and reproduce on origin/dev. These are desktop Vim caret placement in both browsers/themes, an intermittent Chromium Vim Saved assertion, and an intermittent mobile WebKit Undo interaction. Every initial failure was repeated alone three times on both builds. The branch-only WebKit failed-import recovery regression found during validation was fixed and passes three repeats. Focused cold loading, styles, dismissal, recovery and real offline cache checks pass (19 passed, one configured skip).

Five Chromium first-open runs per component, p50/max milliseconds:

Component Before After
SignIn 377.8 / 420.0 409.7 / 415.8
TrashList 89.7 / 100.0 93.2 / 107.0
LinkCard 77.9 / 92.0 77.3 / 81.6
TagPicker 313.1 / 351.4 273.7 / 283.5
ContextMenu 282.0 / 307.3 224.7 / 274.1

These samples include animations and SignIn cleanup/reload; they do not establish exactly zero end-to-end latency. SignIn script/CSS fetches finished well before content became visible. Resolved components render synchronously without an await placeholder.

Evidence, verbatim gate output, failure comparisons and screenshots are recorded on issue #689. No evidence artifacts were committed. No merge or deployment.

Refs #689.

The first screen exceeded its JavaScript and CSS budgets on dev. Group the initial module graph and defer SignIn, TrashList, LinkCard, TagPicker and ContextMenu with their CSS. Warm them after first paint and retain content and dismissal handling while cold chunks load. Recover failed imports safely, including WebKit cached fetch failures and offline cache URLs. Brotli KB (1024 bytes), fresh builds of a779a46 and this branch: | Metric | Before | After | Budget | |---|---:|---:|---:| | First-screen JS | 255.479 | 237.443 | 240 unchanged | | First-screen CSS | 22.615 | 20.096 | 22.1 unchanged | | Total JS | 307.847 | 299.715 | 260 → 300 approved | The one-line budget reason references #689: the app precaches everything for offline; the first-screen budgets are the ones that gate perceived speed. The exact CI bundle gate passes. Svelte check has zero errors and 14 existing warnings. Editor and UI Vitest: 299 and 38 tests pass. Apps/web has no Vitest suites; its six Node tests pass. All 18 Playwright projects were covered in sequential shards with one worker: 2,374 unique cases pass, 1,478 skip, six failures remain and reproduce on origin/dev. These are desktop Vim caret placement in both browsers/themes, an intermittent Chromium Vim Saved assertion, and an intermittent mobile WebKit Undo interaction. Every initial failure was repeated alone three times on both builds. The branch-only WebKit failed-import recovery regression found during validation was fixed and passes three repeats. Focused cold loading, styles, dismissal, recovery and real offline cache checks pass (19 passed, one configured skip). Five Chromium first-open runs per component, p50/max milliseconds: | Component | Before | After | |---|---:|---:| | SignIn | 377.8 / 420.0 | 409.7 / 415.8 | | TrashList | 89.7 / 100.0 | 93.2 / 107.0 | | LinkCard | 77.9 / 92.0 | 77.3 / 81.6 | | TagPicker | 313.1 / 351.4 | 273.7 / 283.5 | | ContextMenu | 282.0 / 307.3 | 224.7 / 274.1 | These samples include animations and SignIn cleanup/reload; they do not establish exactly zero end-to-end latency. SignIn script/CSS fetches finished well before content became visible. Resolved components render synchronously without an await placeholder. Evidence, verbatim gate output, failure comparisons and screenshots are recorded on issue #689. No evidence artifacts were committed. No merge or deployment. Refs #689.
Bundle: keep first screen within budgets (#689)
Some checks failed
CI / server (pull_request) Successful in 1m2s
CI / rust (pull_request) Successful in 19m8s
CI / web (pull_request) Failing after 1h0m2s
c4af6afea4
Author
Owner

kayg decided on 27 Oct: keep it. Sign In opens about 32 ms slower the first time only, and the first screen got smaller.

kayg decided on 27 Oct: keep it. Sign In opens about 32 ms slower the first time only, and the first screen got smaller.
Author
Owner

Superseded by #719, which landed on dev.

Superseded by #719, which landed on dev.
kayg closed this pull request 2026-10-28 07:52:31 +00:00
Some checks failed
CI / server (pull_request) Successful in 1m2s
CI / rust (pull_request) Successful in 19m8s
CI / web (pull_request) Failing after 1h0m2s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!696
No description provided.