perf: fix manifest, add preconnect hints, dynamic devtools, and loading indicator
Merged
MA
6mo ago+118+118+012345678901234567890123456789-75-75-01234567890123456789
Summary
Small follow-up improvements on top of the recent site restructuring:
- manifest.json: Filled empty
name,short_name, and addeddescriptionfor PWA install experience - preconnect hints: Added
preconnect/dns-prefetchforunpkg.comCDN - Dynamic DevTools: TanStack DevTools panels now import dynamically, fully tree-shaken in production builds
- Route loading indicator: Top loading bar animation during client-side route transitions using
useRouterState({ select: s => s.isLoading }) - Dependency cleanup: Removed unused
jsdomand@testing-library/dom
Test plan
-
pnpm buildsucceeds with 6 prerendered pages - 77 tests pass (40 core + 8 react + 2 wc + 27 site)
-
pnpm checkpasses with no errors
š¤ Generated with Claude Code
Summary by cubic
Improve load and navigation UX by completing the PWA manifest, adding CDN preconnect, lazy-loading DevTools, and showing a top loading bar. This reduces the production bundle and speeds up perceived navigation.
-
New Features
- Top loading bar during client-side route transitions (via
useRouterStateisLoading). - PWA manifest now has name, short_name, and description; updated theme color.
- Top loading bar during client-side route transitions (via
-
Refactors
- DevTools (
@tanstack/react-devtools,@tanstack/react-router-devtools) are dynamically imported and tree-shaken from production builds. - Added
preconnectanddns-prefetchhints for https://unpkg.com. - Removed unused
jsdomand@testing-library/dom.
- DevTools (