Repository navigation
Load website JavaScript earlier and separate startup timings - #2122
Merged
Merged
Conversation
CI on main and this branch rejects the raw focus call introduced in #2121. Preserve its no-scroll handoff while declaring the return to standing observers.
leaf-agent
approved these changes
Oct 9, 2026
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.
Website pages discover their widget modules after loading the runtime and registry, adding request waterfalls before the page is usable. Generate preload hints for the emitted core graph and widgets present in each document, using the same widget discovery as the browser and each revision's exact import map. Optional modules remain lazy, and immutable captured documents are preserved.
Startup reports now record widget upgrade and the first completed state response separately from presentation, so browser initialization and private-state/container delays can be distinguished. State restoration still gates durable actions and anchored comments. Build tools may consume private runtime declarations directly rather than duplicate their discovery logic. A bounded CI repair also moves the keyboard settings handoff from raw focus to the canonical focus-return API; main has the same lint failure introduced by #2121.
Validation: runtime 258 tests, browser 84 tests, Worker 70 tests and TypeScript checks pass; committed browser bundles reproduce exactly. Browser integration covers held, abandoned, and refused state requests and resource-timing eviction. Controlled cold-page comparisons before integrating main reduced presentation time by 19–38%; cached loads changed little. Full Python and website delivery gates run in CI. The local Docker daemon is unresponsive, so container delivery validation relies on CI.