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

feat: Add named requestAnimationFrame to prevent performance issues (… #4

Merged
merged 1 commit into from
Jul 9, 2020

Conversation

DispatchCommit
Copy link

videojs#6627)

Make sure we don't create multiple rAFs particularly when in a background tab.

Fixes videojs#5937

Description

Please describe the change as necessary.
If it's a feature or enhancement please be as detailed as possible.
If it's a bug fix, please link the issue that it fixes or describe the bug in as much detail.

Specific Changes proposed

Please list the specific changes involved in this pull request.

Requirements Checklist

  • Feature implemented / Bug fixed
  • If necessary, more likely in a feature request than a bug fix
    • Change has been verified in an actual browser (Chome, Firefox, IE)
    • Unit Tests updated or fixed
    • Docs/guides updated
    • Example created (starter template on JSBin)
  • Reviewed by Two Core Contributors

…6627)

Make sure we don't create multiple rAFs particularly when in a background tab.

Fixes #5937
@DispatchCommit DispatchCommit merged commit 0d0c465 into bitwave-tv:master Jul 9, 2020
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.

High CPU usage after the player stays in background for a while
2 participants