Web features explorer

requestAnimationFrame() in workers

Newly available since 2023-03-27
Tags: api

The requestAnimationFrame() method in workers schedules a function that runs before the next repaint. Together with offscreen canvas, you can animate content from a worker. To learn more, see DedicatedWorkerGlobalScope: cancelAnimationFrame() method, DedicatedWorkerGlobalScope: requestAnimationFrame() method at MDN.

Compatibility

Specifications