Skip to content

perf(web): parallelize homepage data loading - #2646

Merged
jonathanhaaswriter merged 2 commits into
mainfrom
codex/dashboard-snapshot-swr
Aug 26, 2026
Merged

perf(web): parallelize homepage data loading#2646
jonathanhaaswriter merged 2 commits into
mainfrom
codex/dashboard-snapshot-swr

Conversation

@jonathanhaaswriter

Copy link
Copy Markdown
Collaborator

Summary

  • keep the existing dashboard cache warm lifecycle while removing the first warm from the server-readiness critical path
  • start independent dashboard, readiness, and coverage reads together so secondary data does not form a client waterfall
  • make the scale benchmark wait for real homepage work data and serve production-shaped dashboard fixtures
  • cover cold/warm cache behavior, tenant and workspace separation, non-blocking secondary stalls, and non-blocking startup warm behavior

Validation

  • NODE_OPTIONS=--localstorage-file=/tmp/cerebro-dashboard-architecture-vitest-localstorage npm test -- --run (114 files, 693 tests)
  • npx eslint src/instrumentation.ts src/instrumentation.test.ts src/app/page.tsx src/app/page.test.tsx 'src/app/api/cerebro/[...path]/route.test.ts' scripts/grc-scale-benchmark.mjs
  • npm run build
  • CEREBRO_GRC_SCALE_ROUTE=home CEREBRO_GRC_SCALE_USABLE_MS=1000 node scripts/grc-scale-benchmark.mjs --quick --production --artifacts (Home usable 951ms, API 32ms, 292 DOM nodes)

Comment thread apps/web/scripts/grc-scale-benchmark.mjs Fixed
@jonathanhaaswriter
jonathanhaaswriter merged commit 1061ebd into main Aug 26, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants