Commit 7a916a34 authored by Michael Droettboom's avatar Michael Droettboom

Don't do wasm pre-decoding on Firefox, to preserve memory usage

parent 0f724ec0
......@@ -73,6 +73,10 @@ var languagePluginLoader = new Promise((resolve, reject) => {
Module.noImageDecoding = true;
Module.noAudioDecoding = true;
let isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
if (isFirefox) {
Module.noWasmDecoding = true;
}
let wasm_promise = WebAssembly.compileStreaming(fetch(wasmURL));
Module.instantiateWasm = (info, receiveInstance) => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment