External Publication
Visit Post

Web Compatibility Support • Results of wasm streaming polyfill tests

Pale Moon forum - Forum index [Unofficial] March 6, 2026
Source

I have succeeded in making a usable polyfill for WebAssembly.compileStreaming and WebAssembly.instantiateStreaming. To do this I am using • github/greasemonkey • github/crx-polyfill-everywhere together with my polyfill at:

wasm-polyfill.js

— —


— —

to inject the polyfill add the following line to the crx-polyfill greasemonkey script, replace the URL with your own :

CODE:

add_remote_script_element('http://127.0.0.1:3000/wasm-polyfill.js')

I can also recommend using the web-streams-polyfill which is needed on sites such as huggingface. For that copy the unpkg link and add it the same way

— —


— —

The example uses this example, with the AssemblyScript function:

CODE:

export function add(a: i32, b: i32): i32 { return a + b;}

Code that needs top level await, will still not work. But I hope it helps regardless. If you have any questions, please don't hesitate to ask


Discussion in the ATmosphere

Loading comments...