Homepage/workbench TTI was dominated by the layout synchronously booting
event-bridge, streak tracker, LLM queue, memoro watcher, dashboard store,
shared-uload and reminder scheduler before first paint, plus statically
importing 7 modals/toasts/banners that are rarely-to-never visible on
initial render.
- Keep critical path inline: local-store init (manaStore/tag/link),
unified sync engine + billing, guest-mode setup.
- Move side-effect streams, projection workers and telemetry to
requestIdleCallback (with setTimeout fallback).
- Dynamically import KeyboardShortcutsModal, OnboardingWizard,
GuestWelcomeModal, SessionWarning, EncryptionIntroBanner,
SuggestionToast, NudgeToast. Modals fetch on first demand; toasts
mount after idle so their transitive deps (automationsStore,
day-snapshot projection, streaks, crypto gate) don't land in the
initial chunk.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>