PAR-133
0
Perceived-latency pass: loading skeletons, nav prefetch, auth-path write, /chestshop cache
DoneHighUnassignedEconomy Explorer
Post-PAR-129/130 the worst pages load, but the app still feels sluggish. Causes are on the common/perceived path, not individual page queries:
- No loading.tsx anywhere + force-dynamic + prefetch=false → every click is a cold blocking server round-trip with no feedback. Add route-level loading skeletons; enable prefetch on the primary header nav only (keep content links cold, per anti-scraping stance).
- getViewer writes on every authenticated page —
upsertIdentityruns before the identity read on every render. Reorder to read-first, upsert only when the link is missing or the name changed. Saves a write round-trip to the (remote, ~50ms RTT) Bloom.host DB on nearly every page. Faro floor: /login (no DB) ~138ms vs /link (auth) ~317ms. - /chestshop ~4s — listItems/countItems do a full-table GROUP BY item_key over all chestshop_sale every load. Cache the no-search default page (like /market in PAR-130).
UX scope chosen by user: skeletons + prefetch on main nav.
Resources
- commita90ad7a Merge pull request #10 from MCCitiesNetwork/developMCCitiesNetwork/economy-explorer
- commit76d044c Perceived-latency pass: loading skeletons, nav prefetch, lean auth path, /chestshop cache (PAR-133)MCCitiesNetwork/economy-explorer
- PR · merged#10 Release economy-explorer → main (perceived-latency pass, PAR-133)MCCitiesNetwork/economy-explorer
- PR#9 Release economy-explorer → main (perf fixes + 1.1.0 RBAC/RUM)MCCitiesNetwork/economy-explorer
Comments
No comments yet.
Activity
- ParadauxIO linked a commit — Commit a90ad7a — Merge pull request #10 from MCCitiesNetwork/develop
- ParadauxIO linked a commit — Commit 76d044c — Perceived-latency pass: loading skeletons, nav prefetch, lean auth path, /chestshop cache (PAR-133)
- ParadauxIO changed status to Status → Done
- ParadauxIO linked a pull request — PR #10 merged — Release economy-explorer → main (perceived-latency pass, PAR-133)
- ParadauxIO linked a pull request — PR #10 open — Release economy-explorer → main (perceived-latency pass, PAR-133)
- ParadauxIO linked a pull request — PR #9 open — Release economy-explorer → main (perf fixes + 1.1.0 RBAC/RUM)
- tesks changed status to Status → Pending Release
- ParadauxIO linked a commit — Commit 76d044c — Perceived-latency pass: loading skeletons, nav prefetch, lean auth path, /chestshop cache (PAR-133)
- tesks created the issue