I’ve heard on the IRC chan that js-ipfs relies on the Workers API to run on the browser. But what type of Workers?
- If it’s Service Workers, it would allow to keep the IPFS daemon running when you change pages. But the downside is that you need to be in HTTPS to use Service Workers, so you have to buy a TLS certificate to use js-ipfs on your website. Besides, the ipfs-js daemon would be killed as soon as you leave the website.
- If it’s Web Workers we don’t need TLS certificates anymore but in this case we can’t keep js-ipfs running between 2 pages.
So the real question is: how does IPFS Companion manages to keep the same js-ipfs daemon wherever you go?