MicrosoftEdge / MicrosoftEdge/WebView2Feedback

window.requestAnimationFrame background throttling

Open
#1,172 7 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

I need an option to ensure that window.requestAnimationFrame does not throttle when my application does not have focus. By the nature of my application, it will normally not have focus but it still needs to be able to render smooth animations. The throttling happens at unexpected times, where it will continue smooth animation for a while after I click away, but minutes later it becomes a slide show until I click the window again.

AB#32524564

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by investigating window.requestAnimationFrame behavior in an unfocused WebView2 application, comparing animation timing before and after focus is lost. Review the linked AB#32524564 work item for current context; done means an agreed option or supported behavior prevents the reported background throttling.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.