Repository navigation
feat(spikes): cache and preload the in-browser Flutter toolkit (CHE-7630) [squash] - #98
Draft
congvc-bot-x99[bot] wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Evidence-only spike (CHE-7630, S2b): cache and preload the in-browser Flutter toolkit. Stacked on S1b (
agent/x99-claude-sonnet-200k/che-7478-51a70fdc3c43, headb7b39b31). Nothing here ships. Full write-up:spikes/flutter-lane/S2B-EVIDENCE.md.Result
toolkit-0.1.4-3.14.0-3.50.0). Warm visit: 0 B of toolkit. Toolkit bump: 12,136 B in 2 requests, new toolkit runs. The immutable-URL alternative re-downloads 31.3 MB on a bump.pub get, toolkit and a hidden connected sandbox at page open): frame opens 15 s after the page, first frame in 3.5 to 4.0 s (warm, 3 of 3) instead of 12 to 14 s. Level 1 gives almost nothing.pub.dev, the Roboto fallback font and the rive runtime mirror on X99 (/mirror/*); the viewer's browser then calls no third-party host. Font and rive redirects need the service worker.cache.putthrewQuotaExceededErrorand the page never reached a first frame. Fixed with.catch.Red then green
node check.mjs assert(fromspikes/flutter-lane/s2b), cold / warm / bumped toolkit in one persistent Chrome 158 profile.S1b page, red (
evidence-s2b/red-s1b.txt, 2026-11-19 19:11 ICT):S2b
sw+ mirror, green (evidence-s2b/green-sw.txt, 23:21 ICT):Quota (
node check.mjs evict --only E): redevidence-s2b/evict-red-E.txt(23:13 ICT, first frame never reached at a 100 MB quota, 240 s timeout), greenevict-green-E.txt(23:17 ICT).Checks run
prettier --check,oxlint --deny-warnings,eslint --max-warnings 0onspikes/flutter-lane/s2band the evidence file: clean.verify.sh b7b39b31: related-tests SKIP (no ts/tsx test changed), browser-tests SKIP, lint PASS, format PASS, doc-lint PASS, build SKIP. typecheck FAIL, in files this PR does not touch (scripts/perf/*,server/clientStatic.ts, two tests): the checkout had no install of its own, so I used another checkout'snode_modules, which lacksplaywright-coreandcompression. Nothing underspikes/is in the error list. CI will give the clean typecheck.Caveats
s2b/node_modulesis a gitignored symlink forplaywright-core; not committed.Tailnet only. No public URL, no C00 change, no CDN, no spend.