Skip to content

fix: remove synchronous media metadata XHR from render-critical paths #32

@ubugeeei

Description

@ubugeeei

Finding

Media metadata helpers use synchronous XHR for video/audio durations. This can freeze the UI/headless renderer and cache failed zero durations.

Evidence

  • src/lib/video/video.tsx metadata helper.
  • src/lib/sound/sound.tsx metadata helper.
  • src/lib/vue.tsx has analogous logic.

Acceptance criteria

  • Replace sync XHR with async metadata loading or preflight planning.
  • Avoid permanently caching failure values.
  • Preserve deterministic render startup.

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