{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreihgpqfitv3op23gt5suxivegqv6tc7zqpsb5olyb2x3ddyx74ul5a",
"uri": "at://did:plc:hqad6xwuzg7oqfmwylfkvqfm/app.bsky.feed.post/3mggiyuoarrt2"
},
"path": "/viewtopic.php?t=33216&p=270871#p270871",
"publishedAt": "2026-03-06T20:43:44.000Z",
"site": "http://forum.palemoon.org",
"tags": [
"github/greasemonkey",
"github/crx-polyfill-everywhere",
"wasm-polyfill.js",
"web-streams-polyfill",
"this",
"AssemblyScript"
],
"textContent": "I have succeeded in making a usable polyfill for WebAssembly.compileStreaming and WebAssembly.instantiateStreaming.\nTo do this I am using\n• github/greasemonkey\n• github/crx-polyfill-everywhere\ntogether with my polyfill at:\n\nwasm-polyfill.js\n\n—\n—\n\n* * *\n\n—\n—\n\nto inject the polyfill add the following line to the crx-polyfill greasemonkey script, **replace the URL with your own** :\n\nCODE:\n\n\n add_remote_script_element('http://127.0.0.1:3000/wasm-polyfill.js')\n\nI can also recommend using the web-streams-polyfill which is needed on sites such as huggingface.\nFor that **copy the unpkg link** and add it the same way\n\n\n\n\n—\n—\n\n* * *\n\n—\n—\n\nThe example uses this example, with the AssemblyScript function:\n\nCODE:\n\n\n export function add(a: i32, b: i32): i32 { return a + b;}\n\nCode that needs top level await, will still not work.\nBut I hope it helps regardless.\nIf you have any questions, please don't hesitate to ask\n\n* * *",
"title": "Web Compatibility Support • Results of wasm streaming polyfill tests",
"updatedAt": "2026-03-06T20:43:44.000Z"
}