Skip to content

Trimming Http in Blazor wasm #44534

Closed
Closed
@CoffeeFlux

Description

@CoffeeFlux

System.Net.Http is one of the largest libraries in the Blazor sample, taking up 53KB when compressed with Brotli. Most of this space is held in the headers, most of which are not likely to be used. We should investigate some sort of feature flag here to try and get rid of this even if the linker cannot guarantee it will be unused.

The size grew also when http2 and http3 support was added for SocketHttpHandler which is not used and excluded for Browser and still the various caches and static data are populated.

Metadata

Metadata

Assignees

Labels

arch-wasmWebAssembly architecturearea-System.Net.Httpsize-reductionIssues impacting final app size primary for size sensitive workloads

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions