This repository was archived by the owner on Nov 29, 2026. It is now read-only.
Repository navigation
Load shared Reader modules earlier on cold inbox visits - #97
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
reader | 3e7eb0f | Nov 23 2026, 02:43 PM |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Change
Reader now lets Vite preload the dependencies of a requested module and imports the shared router when the app boots. The initial document can still paint its session check before loading the application stylesheet. Each page and the authentication client retain their lazy boundaries.
The pre-existing Better Auth 1.6.27 pin failed this repository's security gate with one critical and two high advisories. This PR also updates it to stable 1.7.27. Reader uses Google's client ID with One Tap and its existing provider/account key. The published 1.7 upgrade guide documents compatibility with the 1.6 account schema. Aggregate production preflight found zero duplicate account keys and no legacy issuer column. No migration is required.
Verification
Using identical production builds and paired cold Chromium sessions on loopback, the median time from document response to visible authenticated inbox rows improved from 2,826 to 2,053 ms at 390 px, 2,824 to 2,032 ms at 768 px and 2,844 to 1,998 ms at 1440 px. Each width had three pairs with alternating order, a 150 ms network delay, 1.6 Mbps download, 4× CPU slowdown and a synthetic authorized session. First contentful paint in these runs was 200–212 ms before and 202–214 ms after, measured from document response. The 300 ms inbox target remains open.
The complete Cloudflare build and all 30 Chromium/WebKit browser checks passed. The checks cover pending and signed-out access, five reserved inbox rows, link arrival, the extension route and the public landing. Reviewed pending and populated renders at all three widths. CodeVetter's packaged performance checker declined the config-relative browser fixture. The timings above are from Chromium.
On an isolated migrated D1 database, Better Auth 1.6.27 created a synthetic account and session through its test utilities. The actual Reader auth handlers from both revisions returned the same user and session IDs. The updated local Worker returned a null anonymous session, denied a private inbox request, and started a Google sign-in with state and the correct callback. Google credential consent and a real One Tap completion were not exercised. Independent CodeVetter review identified the minor-version upgrade and the need to distinguish synthetic session continuity from real-provider sign-in. Exact CI, the hosted preview build and dependency audit pass, with zero high or critical advisories remaining.
Tracks sass-maker/saas-maker#244.