We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb12fc3 commit 7302e0fCopy full SHA for 7302e0f
pages/dummy.html
@@ -14,14 +14,8 @@
14
try {
15
const res = await fetch(url);
16
if (!res.ok) throw new Error(`HTTP ${res.status} ${res.statusText}`);
17
- try {
18
- return await WebAssembly.instantiateStreaming(res, imports);
19
- } catch {
20
- alert('fallback');
21
- // Fallback if wrong MIME
22
- const bytes = await res.arrayBuffer();
23
- return await WebAssembly.instantiate(bytes, imports);
24
- }
+
+ return await WebAssembly.instantiateStreaming(res, imports);
25
} catch (e) {
26
throw new Error(`Failed to fetch/instantiate WASM: ${e.message}`);
27
}
0 commit comments