Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

86
Views
Make requestAnimationFrame work when page is hidden

I have a website which uses requestAnimationFrame to constantly run a couple of functions. However, it won't run when the tab is hidden. I found a script online from https://stackoverflow.com/a/31105348/16855745, but this only worked for setTimeout. I used the following: requestAnimationFrame=function(t){setTimeout(t,1000/60)}, which worked when paired with the above script, but I was wondering if there is any direct way to make requestAnimationFrame work when page is hidden.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!