Building desktop apps with action scheduler to pull data from oauth2 user-agent flow api?

Browsers delay or pause JavaScript when the page is not active. So it is possible that it doesn't run when the user is not on the page. The scheduler uses requestAnimationFrame.