Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox shows a blank page #38

Closed
adamziel opened this issue Oct 14, 2022 · 1 comment
Closed

Firefox shows a blank page #38

adamziel opened this issue Oct 14, 2022 · 1 comment

Comments

@adamziel
Copy link
Collaborator

It errors out with:

Uncaught (in promise) TypeError: NetworkError when attempting to fetch resource.

See https://wasm.wordpress.net/wordpress.html

It's probably something with HTTP headers or XHR binary mode. Perhaps switching FF to a webworker backend would help?

@adamziel
Copy link
Collaborator Author

adamziel commented Oct 14, 2022

This is happening when the server doesn't include Content-Type: application/wasm in the headers. Even requesting the .wasm file directly displays the error in Firefox: https://wasm-worker.wordpress.net/php-web.wasm

Adding AddType application/wasm .wasm to .htaccess solved the problem on Apache:

CleanShot 2022-10-14 at 11 05 43@2x

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

No branches or pull requests

1 participant