mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-19 11:24:57 -05:00
Under Fast 3G the homepage still took ~19s to LCP. The main costs: - The hero 3D logos were SVGs wrapping large embedded PNGs (256-590KB each), and all four (both themes) were `priority`, so every visit preloaded 1.69MB, including on mobile where they're hidden. They're now WebP (21-59KB) served through next/image with `sizes`, lazy-loaded so only the visible theme's pair is fetched (~37KB). - The contributor wall rendered 473 GitHub avatars (~1.6MB) that the browser's lazy-loading threshold pulled in right after first paint. The wall now mounts its avatars only when it nears the viewport. - `geist/font/pixel` declared and preloaded all five Geist Pixel fonts; only Square is used, so load just that one. - Both demo video posters were fetched even though one is hidden; only the active theme's poster is set now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>