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

Production client should serve compressed wasm using Brotili + gzip #2177

Open
davidkircos opened this issue Jan 9, 2025 · 1 comment
Open
Labels
high priority within weeks type: enhancement new feature or request

Comments

@davidkircos
Copy link
Collaborator

davidkircos commented Jan 9, 2025

Wasm files on Vercel are compressed and are roughly 4x smaller than the ones served via Amplify in production!

  • Rust client 11.4 Mb / 2.8 Mb
  • Core 12.8 Mb / 3.1 Mb
  • esbuild.wasm 11.5 Mb / 3.0 Mb
@ddimaria
Copy link
Collaborator

ddimaria commented Jan 9, 2025

Cloudfront will only compress if the file is less than 10mb. A good option is to use this vite plugin: https://github.com/vbenjs/vite-plugin-compression (or change CDNs or reduce the bundle size by remove deps).

@luke-quadratic luke-quadratic added the type: enhancement new feature or request label Jan 15, 2025
@luke-quadratic luke-quadratic changed the title enhancement: production client should serve compressed wasm using Brotili + gzip Production client should serve compressed wasm using Brotili + gzip Jan 15, 2025
@luke-quadratic luke-quadratic added the high priority within weeks label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high priority within weeks type: enhancement new feature or request
Projects
Status: No status
Development

No branches or pull requests

3 participants