Skip to content

perf: cut LCP/page weight and lift Lighthouse scores - #18

Merged
minuitcinq merged 1 commit into
mainfrom
ml/performance-enhancement
Aug 20, 2026
Merged

perf: cut LCP/page weight and lift Lighthouse scores#18
minuitcinq merged 1 commit into
mainfrom
ml/performance-enhancement

Conversation

@minuitcinq

Copy link
Copy Markdown
Collaborator

Summary

  • Sized Sanity team-photo/logo fetches instead of pulling full-resolution originals (~1MB saved)
  • Converted static PNGs (hero background, WSJ logo, award badge, tech-stack logos) to WebP
  • Removed the unused image-slot.js drag-and-drop scaffold — dead weight in production, replaced with plain <img> (verified pixel-identical rendering)
  • Lazy-loaded Blog/BlogPost/Financing/Ventures routes via React.lazy
  • Deferred the Google Fonts stylesheet (preload+swap) so it stops blocking first paint
  • Added <main> landmarks and fixed a few unlabeled form controls

Results (local Lighthouse, desktop preset)

Category Before After
Performance 94 100
Accessibility 79 96
Best Practices 96 96
SEO 100 100

LCP 1.6s -> 0.5s, total page weight 1,368 KiB -> 276 KiB.

Test plan

  • Verified build succeeds and preview renders correctly
  • Verified clip-path/object-fit CSS matches the old <image-slot> output pixel-for-pixel
  • Verified Home, Blog, Financing, Ventures render with no console errors
  • Verified Lighthouse scores locally before/after

🤖 Generated with Claude Code

Sizes Sanity team-photo/logo fetches instead of pulling full-resolution
originals, converts static PNGs to WebP, drops the unused image-slot.js
drag-and-drop scaffold (dead weight in production), lazy-loads
Blog/Financing/Ventures/BlogPost routes, and defers the Google Fonts
stylesheet so it stops blocking first paint. Also adds <main> landmarks
and fixes a few unlabeled form controls picked up along the way.

Local Lighthouse (desktop): Performance 94->100, Accessibility 79->96,
LCP 1.6s->0.5s, total page weight 1368KiB->276KiB.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@minuitcinq
minuitcinq merged commit fa6e90d into main Aug 20, 2026
@minuitcinq
minuitcinq deleted the ml/performance-enhancement branch August 20, 2026 20:36
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