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

Interactive Code Block: Ship a php script to serve gzipped .wasm file #55

Open
adamziel opened this issue May 4, 2023 · 0 comments
Open
Labels

Comments

@adamziel
Copy link
Collaborator

adamziel commented May 4, 2023

Related to interactive code block.

Uncompressed php.wasm is 5MB, gzipped one is 1.8MB. Not every host supports gzip for .wasm files so let's ship a custom php_wasm.php script that serves a gzipped version of the .wasm file. It should compress it on the first request.

Done is:

  • Interactive code block only downloads a gzipped version of the php.wasm file
@adamziel adamziel added the Enhancement New feature or request label May 4, 2023
@adamziel adamziel transferred this issue from WordPress/wordpress-playground Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant