Hey! I've been using this library for a bit now, and its really amazing for what it can do!
However, currently, when I open my project and then spawn a thread, each time there are still requests going out, so far that it doesn't work if my browser is offline (I also don't have a caching serviceworker, which might be able to help).
Precisely there's 4 requests going out, 2 of which transfer 0 bytes and still seem to work offline, 2 others where at least the first fails when offline.
To be entirely honest, I don't really understand the entire business with the js scripts thats described in the readme. However, it is my understanding that this is required because webworkers require to be started from a URL. BTW, the urls in that readme are dead, the paths they reference have changed. Its easy enough to find the correct files, but it might be worth a quick fix.
I did a bit of looking around, and this stack overflow question and answer imply that its possible to use a data-url for the serviceworker.
This should mean that its possible to do this request, from my understanding, without that complicated hack to get a url, and its possible entirely offline.
I'm uncertain whether this will actually enable everything to work offline. I'm under the impression that one of the 2 network bearing requests in my case is for the generated js-wrappers from wasm-bindgen.
But I hope that you may have more insight into that, and I thought perhaps you would be interested in using a data-url to avoid the current hack, even if this doesn't add any features.
Hey! I've been using this library for a bit now, and its really amazing for what it can do!
However, currently, when I open my project and then spawn a thread, each time there are still requests going out, so far that it doesn't work if my browser is offline (I also don't have a caching serviceworker, which might be able to help).
Precisely there's 4 requests going out, 2 of which transfer 0 bytes and still seem to work offline, 2 others where at least the first fails when offline.
To be entirely honest, I don't really understand the entire business with the js scripts thats described in the readme. However, it is my understanding that this is required because webworkers require to be started from a URL. BTW, the urls in that readme are dead, the paths they reference have changed. Its easy enough to find the correct files, but it might be worth a quick fix.
I did a bit of looking around, and this stack overflow question and answer imply that its possible to use a data-url for the serviceworker.
This should mean that its possible to do this request, from my understanding, without that complicated hack to get a url, and its possible entirely offline.
I'm uncertain whether this will actually enable everything to work offline. I'm under the impression that one of the 2 network bearing requests in my case is for the generated js-wrappers from wasm-bindgen.
But I hope that you may have more insight into that, and I thought perhaps you would be interested in using a data-url to avoid the current hack, even if this doesn't add any features.