perf: defer optional editor, draft sync, analytics, and library menu code - #1234
perf: defer optional editor, draft sync, analytics, and library menu code#1234LadyBluenotes wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (12)
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughChangesUI lazy loading
Analytics bootstrap
Builder project utilities
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Merge Risk: ⚪ Minimal · up to The deferred-loading changes preserve the reviewed editor, menu, analytics, and draft-save behaviors without an actionable merge risk. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
tanstack-com | fecf42f | Commit Preview URL Branch Preview URL |
Sep 08 2026, 05:05 PM |
Opening a local builder draft currently downloads CodeMirror and transcript sync before either is needed. The closed Libraries menu also pulls its icon map into shared startup code.
Production static-import graphs, compared with
362c620fusing the same build settings:About 291 KB gzip leaves the combined initial draft graph. This measures deferred bundle bytes, not an LCP improvement.
Validation:
pnpm testpassed (482 passed, one skipped), production build passed, formatting and patch checks passed. Chrome desktop/mobile checks covered cold and repeated menu opening, keyboard/link navigation, mobile overlay/back, editor loading and retained edits, local draft persistence, sign-in prompting, both legacy hash formats, and analytics hydration ordering with a stubbed provider. Existing transcript tests cover promotion and deterministic IDs; authenticated server saving was not exercised in the browser.First use can show a loading placeholder. Analytics delivery starts later, so visits ending before initialization can be missed. Homepage media and builder SSR are outside this PR.
Summary by CodeRabbit
New Features
Performance
Bug Fixes