Skip to content

Load website JavaScript earlier and separate startup timings - #2122

Merged
max-sixty merged 4 commits into
mainfrom
codex/website-startup-message
Oct 9, 2026
Merged

max-sixty merged 4 commits into
mainfrom
codex/website-startup-message

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 9, 2026 •

Copy link
Copy Markdown
Owner

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.

This was written by Codex on behalf of max-sixty

@max-sixty
max-sixty merged commit 81e0e10 into main Oct 9, 2026
6 checks passed
@max-sixty
max-sixty deleted the codex/website-startup-message branch October 9, 2026 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants