27 ms·
The article mentions why they couldn't use canvas for this: they are running this code in a worker, and canvas support in workers is not great in browsers so fa
by bzbarsky 8y ago
The article mentions why they couldn't use canvas for this: they are running this code in a worker, and canvas support in workers is not great in browsers so far.
- olliej 8y agoAh my bad for skimming - I though most canvas stuff worked these days? (I recall many years ago when I worked on such things that fonts were the biggest problem, but also people generally wanting to be able to paint dom elements in their as well)
- Technetium_Hat 8y agoIt is OffScreenCanvas, the variant that works in web workers, that has poor browser support.
- jaffathecake 8y agoNot only that, there's a nasty bug in Chrome that makes it unusable for our use-case https://bugs.chromium.org/p/chromium/issues/detail?id=906619 https://bugs.chromium.org/p/chromium/issues/detail?id=906619