openzim / openzim/javascript-libzim
Try to compile to a lower target to support older browsers
- Dominant language
- JavaScript
- Stars
- 5
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
When we compiled XZ and ZSTD to WASM, we were also able to compile to ASM (the older, JavaScript-only version, which is quite fast and well optimized across most browsers). But even if we can only compile to WASM, the current build isn't working with some browsers that normally support WASM pretty well: notably UWP webview (and hence Edge Legacy), and Chrome for Android.
One possible solution might be to compile without pthreads: see https://github.com/emscripten-core/emscripten/issues/13152#issuecomment-753226011.
But in principle, I don't see why we couldn't also try to produce ASM versions. It's normally just a change in the emcc commandline, but possibly can also be done with emmconfigure.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.