How does the .NET runtime actually run in a browser for Blazor WebAssembly?
Last updated
The browser downloads a Mono-based .NET runtime compiled to WebAssembly (sandboxed, near-native bytecode) and runs it with no plugins.
That runtime interprets your normal IL DLLs by default. Optional AOT compiles your code to WASM for speed at the cost of a larger download.
WASM can't touch the DOM directly, so Blazor uses JS interop to update the page and call browser APIs.
- https://www.thinktecture.com/en/blazor/understanding-and-controlling-the-blazor-webassembly-startup-process/
- https://learn.microsoft.com/en-us/aspnet/core/blazor/performance/webassembly-runtime-performance?view=aspnetcore-10.0
- https://www.telerik.com/faqs/blazor/what-is-blazor-webassembly-(wasm)
- https://learn.microsoft.com/en-us/aspnet/core/blazor/webassembly-build-tools-and-aot?view=aspnetcore-10.0
- https://learn.microsoft.com/en-us/aspnet/core/blazor/hosting-models?view=aspnetcore-10.0
- https://learn.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/webassembly/?view=aspnetcore-10.0
- https://www.codemag.com/Article/2610051/Building-Cross-Platform-High-Performance-Apps-Using-WASM-and-.NET
- https://www.adaface.com/blog/blazor-interview-questions/