This is a live example of how to get rasterized SVG in WebWorker without blocking the main thread:
For clarity, the rasterized image is passed to the main thread and displayed on the canvas
Read more in this article (original lang = rus, use a translator)
See result (below it should be a canvas with a smiley face):