Note that OffscreenCanvas is currently only implemented in chromium based browsers [0]
It is a neat idea, basically separating all the canvas calls into a webworker so it can run on it's own thread. However this scale of parallelism is not a solution to fundamentally slow code... the map rendering performance is still poor, it's just been prevented from interfering with the main thread. Please don't throw web workers at stuff before asking why the code or API calls are slow first.
[0] https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCa...