[P1] Lazy-load Three.js viewport for LCP/INP #26

Closed
opened 2026-06-07 01:55:38 +00:00 by Mark · 0 comments
Owner

Large 1.2MB Three.js bundle blocks first paint.

  • dist/assets/three-DKCnAdtj.js:1.2MB uncompressed
  • Vite manualChunks exists but modulepreload hints eager-load it

Impact: LCP > 2.5s likely on mobile 4G. Viewport3D.tsx renders 3D canvas immediately, delaying UI.

Fix: React.lazy(() => import("./Viewport3D")) with Suspense fallback. Remove from modulepreload hints.

Large 1.2MB Three.js bundle blocks first paint. - dist/assets/three-DKCnAdtj.js:1.2MB uncompressed - Vite manualChunks exists but modulepreload hints eager-load it **Impact:** LCP > 2.5s likely on mobile 4G. Viewport3D.tsx renders 3D canvas immediately, delaying UI. **Fix:** React.lazy(() => import("./Viewport3D")) with Suspense fallback. Remove from modulepreload hints.
Mark closed this issue 2026-06-14 07:57:35 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/parametric-furniture-cad#26
No description provided.