dotnet-aot-wasm

Installation
SKILL.md

dotnet-aot-wasm

WebAssembly AOT compilation for Blazor WASM and Uno WASM applications: compilation pipeline, download size vs runtime speed tradeoffs, trimming interplay, lazy loading assemblies, and Brotli pre-compression for download optimization.

Version assumptions: .NET 8.0+ baseline. Blazor WASM AOT shipped in .NET 6 and has been refined through .NET 8-10. Uno WASM uses a similar compilation pipeline with Uno-specific tooling.

Important tradeoff: Trimming and AOT have opposite effects on WASM artifact size. Trimming reduces download size by removing unused code. AOT increases artifact size (native WASM code is larger than IL) but improves runtime execution speed. Use both together for the best balance.

Scope

  • Download size vs runtime speed tradeoff analysis
  • Blazor WASM AOT (RunAOTCompilation, selective AOT)
  • Uno WASM AOT (.NET 8+ standard workload)
  • Lazy loading assemblies for size reduction
  • Brotli pre-compression for download optimization
  • WASM size optimization checklist

Out of scope

Related skills

More from novotnyllc/dotnet-artisan

Installs
4
GitHub Stars
208
First Seen
Feb 24, 2026