Hacker News new | ask | show | jobs
by paulgb 409 days ago
Unfortunately even though WebAssembly assets can be served statically, you need certain headers to be set to use SharedArrayBuffer, which as far as I can tell is not possible on GH Pages[1]. Pyodide seems to use SharedArrayBuffer for at least some functionality.

[1] https://github.com/orgs/community/discussions/13309

1 comments

Oh that's really disappointing. I've been loading Pyodide from a CDN so I hadn't noticed that.

The one downside of GitHub Pages generally is the lack of custom header control - you can't serve proper HTTP redirects for example.