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

213
Views
requestAnimationFrame is not defined in web-worker in Firefox?

I can't find any information why Firefox v91.10.0esr on Windows 10 complains that requestAnimationFrame is not defined:

const worker = new Worker(
               URL.createObjectURL(
               new Blob(
                  ["requestAnimationFrame(() => this.postMessage('requestAnimationFrame in web-worker process'))"]
                  , { type: "text/javascript" })));

worker.addEventListener("message", e =>
{
  console.log(e.data);
});


requestAnimationFrame(() => console.log("requestAnimationFrame in main process"));

19:09:53.100 ReferenceError: requestAnimationFrame is not defined 569ddce0-b6c3-47c9-88b4-89d59445b335:1:1
    <anonymous> blob:null/569ddce0-b6c3-47c9-88b4-89d59445b335:1

It works fine on Android Firefox and other browsers (Edge, Chrome).

Any ideas?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Firefox added support for requestAnimationFrame and cancelAnimationFrame in workers with v97 as you can see on this issue. Comment 17 and 18 just confirm it.

about 4 years ago · Juan Pablo Isaza Report
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!