Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: optimize Timeline virtual rendering #3748

Merged
merged 1 commit into from
Jun 16, 2024
Merged

Refactor: optimize Timeline virtual rendering #3748

merged 1 commit into from
Jun 16, 2024

Conversation

katspaugh
Copy link
Owner

Short description

Reported in #3696

Implementation details

The virtual rendering in Timeline was doing too many DOM operations on each scroll, making the playback choppy. I've made it append and remove nodes only when their visibility changes.

Copy link

Deploying wavesurfer-js with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0cf105b
Status: ✅  Deploy successful!
Preview URL: https://6ccb1e5e.wavesurfer-js.pages.dev
Branch Preview URL: https://timeline.wavesurfer-js.pages.dev

View logs

@katspaugh katspaugh merged commit 741f71c into main Jun 16, 2024
4 checks passed
@katspaugh katspaugh deleted the timeline branch June 16, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant