web-feature: requestAnimationFrame() in workers

baseline logo Widely available

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.