There are times when a canvas element is the best tool for the job. For example, online games can use them to generate sprites, or videos can have processing effects applied to them.
The problem is that any interactions with the element will always work on the main thread, which slows things down for the user. For repeated animations or heavy processing, this can became a problem.
Offscreencanvas decouples the canvas logic from the element. Without the link to the DOM, it can be used in a worker to free up the main thread.
Currently only Chrome supports this feature, with Firefox including it behind a flag. • https://mzl.la/2l9ehjt