Skip to content

Conversation

lmartorella
Copy link

This PR is to leverage the instantiateStreaming API when loading the WASM code, in order to keep the URI link intact, and overcome CSP rules when they will be able to cover the current gap about WASM same-origin policies.

https://developer.mozilla.org/en-US/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static

It seems that the minimum browser version requirements are more or less the same.
I added a check by the way in case polyfills or older browsers are used, to keep the same previous logic.

Thx, L.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant