Skip to content

[Frontend] frontend/src/app/utils/soundManager.ts is imported eagerly even when sound is disabled #1523

Description

@grantfox-oss

Join our community: https://t.me/+DOylgFv1jyJlNzM0

Why this matters
soundManager.ts, already flagged elsewhere for its dead generateTone stub, appears to be imported by gamification components regardless of whether sound is enabled in settings, so its module cost is paid even for users who never trigger a sound effect.

Acceptance criteria

  • Confirm whether soundManager.ts is imported eagerly at the top of any client component
  • If so, convert the import to a lazy or dynamic import gated on first sound trigger

Files to touch

  • frontend/src/app/utils/soundManager.ts

Out of scope
Fixing the generateTone stub, tracked separately.

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programfrontendIssues related to frontend developmentgood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions