Skip to content
9 linesCodeBlameRaw

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

A doc opens at once: the page carries the document's saved state, so the editor mounts without waiting for its live room, which connects in the background and sends only what changed, with a quiet dot that turns green when it's synced; edits made before then are kept and sent once. The editor's code is preloaded from the page and fetched early when you hover a doc, the app's shared code ships in a few chunks instead of a hundred small ones, socket tickets come with the page instead of a round trip, and the artifacts service answers a page, a sidebar and a room in parallel lookups instead of a dozen in a row, reporting its database round trips in Server-Timing. The artifacts guide says how a doc opens, and CONTRIBUTING's Speed section has the numbers.1/**
2 * The doc editor's chunk and what it imports, as the browser build wrote
3 * them (vite.config.ts `editorChunk`): their addresses in the server
4 * build, none in the browser build and in development.
5 */
6declare module "virtual:g1t-editor-chunk" {
7 const files: string[];
8 export default files;
9}