Skip to content

Homepage performance: Three.js hero + mobile bundle weight #298

Description

@Aliserag

T9 Lighthouse rerun: homepage Performance scores 68 desktop / 55-59 mobile (target ≥85). Documentation pages all hit 99-100; issue is isolated to /.

Findings

  • Total page weight on /: ~5.4 MB
  • Three.js hero (@react-three/fiber, @react-three/drei, three) is the dominant payload
  • LCP 3.85s (target ≤2.5s)
  • Lighthouse insights: unsized-images, font-display, unused-javascript

Caveat

T9 measured on a Bun proxy that lacks HTTP/2, Brotli, edge cache — real Vercel CDN should improve numbers meaningfully. Verify on Vercel preview before treating these scores as canonical.

Mitigation options

  1. Defer Three.js — dynamic-import the hero scene only after first paint
  2. <img> width/height attributes (fixes unsized-images + CLS bonus)
  3. font-display: swap on Geist @font-face (already swap; verify)
  4. unused-javascript — likely tree-shaking gap in lucide-react

Out of scope for the redesign PR

Performance landing under the 95-bar across the board would be ideal, but only the homepage misses. Treat as iterative optimization pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions