Azure / Azure/static-web-apps

Compression of WebAssembly files

Open
#720 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

Currently, JS files are transmitted compressed, but wasm files are transmitted uncompressed. In my case the wasm file weighs 4.5 MB, which would decrease to otherwise ~1.5 MB, which seems to be in line with [what can be observed in the wild](https://almanac.httparchive.org/en/2021/webassembly#can-we-improve-compression).

**To Reproduce**
Spot the difference between https://green-pond-0561aef03.1.azurestaticapps.net/calc.js and https://green-pond-0561aef03.1.azurestaticapps.net/calc.wasm

**Expected behavior**
wasm files should get compressed like js files get.

**Screenshots**
n.a.

**Device info (if applicable):**
- OS: Windows 11
- Browser Edge
- Version 98

**Additional context**
n.a.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.