Use a web worker to generate data and a service worker to intercept the fetching from an element src attribute, and return the generated data from the worker.
The underlying challenge here is how to pipe a readable stream from worker context to browser context.
Use a web worker to generate data and a service worker to intercept the fetching from an element
srcattribute, and return the generated data from the worker.The underlying challenge here is how to pipe a readable stream from worker context to browser context.