4 ms·
For those interested, keep in mind the only way to use WebAssembly with CSP in Chrome is by turning on 'unsafe-eval'. FF/Edge/Safari all at least support compil
by hackcasual 9y ago
For those interested, keep in mind the only way to use WebAssembly with CSP in Chrome is by turning on 'unsafe-eval'. FF/Edge/Safari all at least support compilation from URLs with more locked down policies
- texodus 9y agoTrue - worth pointing out that this library gracefully falls back to ASM.js if your browser does not support WebAssembly, though.
- hackcasual 9y agoDoes it fallback if Window.WebAssembly doesn't exist, or does it fallback if WebAssembly.instantiateStreaming fails?
- texodus 9y agoThe former. In practice, it seems some runtimes are still a bit buggy - so we also revert to ASM.js if e.g. you are on an iPhone