Reading Ipfs data from Webworker

Hi,
at the moment in webworkers the webrtc api is not available and therefore it is impossible to spawn an ipfs node in a webworker if the node requires the Wrtc transport protocol.

However, the webworker has acces to Indexed db and it should be possible to retrieve data as needed from the repo. Do you think that an application could gain in performances by delegating such “subscriptions to data” to the webworker?

The idea is to use the webworker to serve content from the ipfs repo whereas write operations and networking continue to live in the browser main thread

Does it make sense?