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 | -- The document itself, saved beside its text rendition each time a folio's |
| 2 | -- room saves (src/persist.ts `saveFolio`): the Yjs state the page hands the | |
| 3 | -- browser, so a doc opens from it before its room answers, and what an | |
| 4 | -- emptied room is refilled with. NULL until the first save after this | |
| 5 | -- migration, and for a document too large for a row; either way the page | |
| 6 | -- waits for the room, as every page did before. | |
| 7 | ALTER TABLE folios ADD COLUMN state BLOB; |