Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions aspnetcore/blazor/hosting-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,18 @@ In a traditional server-rendered app, opening the same app in multiple browser s

![The browser interacts with Blazor (hosted inside of an ASP.NET Core app) on the server over a SignalR connection.](~/blazor/hosting-models/_static/blazor-server.png)

:::moniker range=">= aspnetcore-10.0"

On the client, the Blazor script establishes the SignalR connection with the server. The script is served as a static web asset with automatic compression and [fingerprinting](https://developer.mozilla.org/docs/Glossary/Fingerprinting).

:::moniker-end

:::moniker range="< aspnetcore-10.0"

On the client, the Blazor script establishes the SignalR connection with the server. The script is served from an embedded resource in the ASP.NET Core shared framework.

:::moniker-end

The Blazor Server hosting model offers several benefits:

* Download size is significantly smaller than when the Blazor WebAssembly hosting model is used, and the app loads much faster.
Expand Down
10 changes: 10 additions & 0 deletions aspnetcore/blazor/project-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,18 @@ The project structure of the client-side app in a hosted Blazor Webassembly solu

## Location of the Blazor script

:::moniker range=">= aspnetcore-10.0"

The Blazor script is served as a static web asset with automatic compression and fingerprinting. For more information, see <xref:blazor/fundamentals/static-files>.

:::moniker-end

:::moniker range="< aspnetcore-10.0"

The Blazor script is served from an embedded resource in the ASP.NET Core shared framework.

:::moniker-end

:::moniker range=">= aspnetcore-8.0"

In a Blazor Web App, the Blazor script is located in the `Components/App.razor` file:
Expand Down
Loading