Repository navigation
Preserve offline Reader drafts and speed up repeated highlight anchoring - #359
Merged
Merged
Conversation
callumalpass
enabled auto-merge (squash)
November 28, 2026 12:30
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.
Summary
Chromium benchmark
Chromium 156.0.8078.4 on the same machine, with nine measured runs after one warm-up for each row. Times are milliseconds. P95 uses nearest rank. Base
d1bef69dc99d4ec2b8ff3b002e4c2f44fbd0a59d.Repeated-highlight anchoring improved 62% at the median. The unique-highlight result varied between paired runs. An earlier nine-run pair measured 139.0/147.3 ms before and 122.5/134.9 ms after. Library startup includes the local Vite module graph and fixture request. Search timing covers Reader's processing of simulated SDK query pages.
Offline and accessibility evidence
Reproduction
From the repository root, install dependencies and run the local fixture server in its own terminal.
For the benchmark baseline, copy
apps/reader/scripts/benchmark-library-article.mjsandapps/reader/test-fixtures/library-article-benchmark.tsxinto an isolated checkout of the base SHA and run the same benchmark there.For the axe matrix, generate the loopback LAB manifest in the test checkout and start Vite with the matching environment in its own terminal.
MDBASE_READER_ORIGIN=http://127.0.0.1:5312 VITE_MDBASE_ENV=lab pnpm --dir apps/reader manifest VITE_MDBASE_ENV=lab pnpm --dir apps/reader exec vite --host 127.0.0.1 --port 5312 --strictPort