Skip to content

Lazy load pages to reduce main bundle size#37

Merged
quequeo merged 1 commit intomainfrom
feature/lazy-load-pages
Feb 17, 2026
Merged

Lazy load pages to reduce main bundle size#37
quequeo merged 1 commit intomainfrom
feature/lazy-load-pages

Conversation

@quequeo
Copy link
Owner

@quequeo quequeo commented Feb 17, 2026

Summary

  • Replace static imports of page components with React.lazy() + Suspense for code splitting
  • Main bundle reduced from 514 kB to 447 kB (below Vite's 500 kB warning threshold)
  • Each page loads as a separate chunk on demand, with a spinner fallback during loading
  • Updated App.test.jsx to use async findByText for lazy-loaded components

Test plan

  • All 209 tests passing
  • ESLint + Prettier clean
  • Production build succeeds with no chunk size warnings
  • Pre-push hook green

Split page components into separate chunks with React.lazy + Suspense,
reducing the main bundle from 514 kB to 447 kB (below Vite warning threshold).
@quequeo quequeo merged commit 98f0a25 into main Feb 17, 2026
3 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.

1 participant

Comments