Skip to content

Commit 15be48e

Browse files
authored
Framework JS files are static web assets (#34441)
1 parent 2ef16de commit 15be48e

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

aspnetcore/blazor/hosting-models.md

+10
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,18 @@ In a traditional server-rendered app, opening the same app in multiple browser s
5050

5151
![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)
5252

53+
:::moniker range=">= aspnetcore-10.0"
54+
55+
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).
56+
57+
:::moniker-end
58+
59+
:::moniker range="< aspnetcore-10.0"
60+
5361
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.
5462

63+
:::moniker-end
64+
5565
The Blazor Server hosting model offers several benefits:
5666

5767
* Download size is significantly smaller than when the Blazor WebAssembly hosting model is used, and the app loads much faster.

aspnetcore/blazor/project-structure.md

+10
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,18 @@ The project structure of the client-side app in a hosted Blazor Webassembly solu
536536

537537
## Location of the Blazor script
538538

539+
:::moniker range=">= aspnetcore-10.0"
540+
541+
The Blazor script is served as a static web asset with automatic compression and fingerprinting. For more information, see <xref:blazor/fundamentals/static-files>.
542+
543+
:::moniker-end
544+
545+
:::moniker range="< aspnetcore-10.0"
546+
539547
The Blazor script is served from an embedded resource in the ASP.NET Core shared framework.
540548

549+
:::moniker-end
550+
541551
:::moniker range=">= aspnetcore-8.0"
542552

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

0 commit comments

Comments
 (0)