Skip to content

Reduce KHIX homepage memory usage #562

Description

@GodlyDonuts

Reduce KHIX homepage memory usage

The 2026 site can reach ~1.2 GB RAM in Chrome. This appears primarily related to large decoded/composited image assets rather than a JS heap leak.

Main suspects:

  • faq-lennyblink-lennyblink.webp is 2667×3318, animated, priority, and unoptimized
  • Hero has 9 full-screen unoptimized layers with permanent will-change: transform, plus animated pond/waterfall WebPs
  • Tracks loads eight 2048×2048 character images as unoptimized
  • FAQ creates a new AudioContext on every cave-note interaction without reusing/closing it

Potential fixes:

  • Replace large animated WebPs with video
  • Remove unnecessary priority / unoptimized and serve responsive sizes
  • Reduce permanent will-change usage
  • Reuse one AudioContext
  • Profile memory before/after in Chrome DevTools

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions