-
Book Overview & Buying
-
Table Of Contents
Web Development with Blazor - Fourth Edition
By :
Blazor WebAssembly lets us run .NET code directly in the browser. Instead of relying on a server to render everything, the browser runs the app locally using WebAssembly.
It will, by default, prerender the content, send that to the web browser and then start to load WebAssembly.

Figure 3.5: Overview of Blazor WebAssembly
Blazor uses a version of the Mono runtime that has been compiled into WebAssembly, this is what makes it possible to run .NET DLLs in the browser. When the app starts, the runtime is downloaded along with your application's assemblies. Then the app runs directly inside the browser without needing a constant server connection.
Thanks to caching, compression, and preloading, the previous challenges with Blazor being slow to start up are no longer an issue.
In older versions of Blazor WebAssembly (like .NET 9 and earlier), the app relied on a file called blazor.boot.json to describe what needed to be downloaded...