Skip to content

fix(vidstack): preload adjacent thumbnail sprites#1827

Merged
mihar-22 merged 1 commit into
mainfrom
codex/1653-thumbnail-preload
May 26, 2026
Merged

fix(vidstack): preload adjacent thumbnail sprites#1827
mihar-22 merged 1 commit into
mainfrom
codex/1653-thumbnail-preload

Conversation

@mihar-22
Copy link
Copy Markdown
Member

@mihar-22 mihar-22 commented May 26, 2026

Summary

  • Preload thumbnails in a bounded window of the next two entries after the active thumbnail.
  • Skip entries that are still on the active sprite while relying on the preload cache to dedupe repeated future sprite URLs.
  • Avoid walking the entire future sprite list into memory while still warming adjacent seek targets.
  • Key preload cache entries by sprite URL and crossOrigin, with a bounded LRU cache.
  • Add focused regression coverage for bounded adjacent sprite preloading.

Fixes #1653.

Coordination

This should merge after #1825 because both PRs touch thumbnail.ts and thumbnail tests. A dry merge check against #1825 head completed without conflicts.

Validation

  • pnpm --filter vidstack exec vitest --run src/components/ui/thumbnails/thumbnail-preload.test.ts
  • pnpm --filter vidstack typecheck
  • git diff --check

@mihar-22 mihar-22 force-pushed the codex/1653-thumbnail-preload branch from e3837b1 to bfcb9c9 Compare May 26, 2026 07:23
@mihar-22 mihar-22 force-pushed the codex/1653-thumbnail-preload branch from bfcb9c9 to cf1043c Compare May 26, 2026 18:45
@mihar-22 mihar-22 marked this pull request as ready for review May 26, 2026 18:46
@mihar-22 mihar-22 merged commit d4950f5 into main May 26, 2026
1 check passed
@mihar-22 mihar-22 deleted the codex/1653-thumbnail-preload branch May 26, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Thumbnails: Preload the "next" spread so there is no "flickr" when transitioning

1 participant