Skip to content

perf: Optimize bundle size and loading performance#10

Open
priority3 wants to merge 1 commit intomainfrom
perf/optimize-bundle-and-loading
Open

perf: Optimize bundle size and loading performance#10
priority3 wants to merge 1 commit intomainfrom
perf/optimize-bundle-and-loading

Conversation

@priority3
Copy link
Owner

Summary

  • 🚀 Add dynamic imports for heavy components (MapLibre ~60KB, Recharts ~40KB, ArtGallery)
  • 🗑️ Remove unused @turf/turf dependency (~200KB gzipped)
  • 📦 Move playwright to devDependencies (only used in scripts)
  • ⚡ Add optimizePackageImports for lucide-react, recharts, framer-motion, Radix UI
  • 🎨 Simplify skeleton.tsx to use CSS-only animations (remove framer-motion dep)
  • 🔄 Increase staleTime from 5s → 60s to reduce unnecessary refetches
  • 🎯 Add data prefetching on activity card hover for faster navigation
  • 🐛 Fix type errors in fingerprint.ts

Test plan

  • Verify homepage loads correctly with lazy-loaded map
  • Verify activity detail page loads correctly
  • Verify data prefetching works on card hover
  • Run bun run build to confirm build passes

🤖 Generated with Claude Code

- Add dynamic imports for heavy components (MapLibre, Recharts, ArtGallery)
- Remove unused @turf/turf dependency (~200KB)
- Move playwright to devDependencies
- Add optimizePackageImports for lucide-react, recharts, framer-motion
- Simplify skeleton.tsx to use CSS-only animations
- Increase staleTime from 5s to 60s to reduce refetches
- Add data prefetching on activity card hover
- Fix type errors in fingerprint.ts

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
run-pace-flow Ready Ready Preview, Comment Feb 5, 2026 0:44am

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