Compresses the wasm binary to reduce its size when hosted#221
Compresses the wasm binary to reduce its size when hosted#221
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull Request Overview
This PR implements client-side loading of gzipped WASM binaries to reduce bundle size and improve loading performance. The changes add automatic WASM compression during the build process and client-side decompression support.
- Adds build-time compression of
kdflib_bg.wasmfiles to.wasm.gzformat - Implements JavaScript client-side decompression using the DecompressionStream API
- Updates the WASM bootstrapper to load compressed binaries instead of raw WASM files
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| copy_platform_assets_build_step.dart | Adds automatic gzip compression for kdflib_bg.wasm files during asset copying |
| wasm_loader.js | New utility module for loading and decompressing gzipped WASM files |
| kdflib_bootstrapper.js | Updates WASM initialization to use compressed binaries via the new loader |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
Visit the preview URL for this PR (updated for commit e654ec3): https://kdf-sdk--pr221-gzip-kdf-wasm-6lox8x7k.web.app (expires Sat, 08 Nov 2025 09:32:20 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 9c1b6e6c010cf0b965c455ba7a69c4aedafa8a1d |
|
Visit the preview URL for this PR (updated for commit e654ec3): https://komodo-playground--pr221-gzip-kdf-wasm-7iv1l622.web.app (expires Sat, 08 Nov 2025 09:32:20 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 2bfedd77fdea45b25ba7c784416e81f177aa5c47 |
No description provided.