Skip to content

Commit dd65285

Browse files
authored
[Blazor] Preloaded Blazor framework script fixes (#36680)
1 parent 3c30fdf commit dd65285

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

  • aspnetcore/release-notes/aspnetcore-10/includes

aspnetcore/release-notes/aspnetcore-10/includes/blazor.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ Files are placed into the import map:
209209

210210
When resolving the import for JavaScript interop, the import map is used by the browser resolve fingerprinted files.
211211

212-
## Preloaded Blazor framework static assets
212+
### Preloaded Blazor framework static assets
213213

214214
In Blazor Web Apps, framework static assets are automatically preloaded using [`Link` headers](https://developer.mozilla.org/docs/Web/HTTP/Reference/Headers/Link), which allows the browser to preload resources before the initial page is fetched and rendered.
215215

@@ -229,6 +229,8 @@ In standalone Blazor WebAssembly apps, framework assets are scheduled for high p
229229
<link rel="preload" id="webassembly" />
230230
```
231231

232+
For more information, see <xref:blazor/fundamentals/static-files?view=aspnetcore-10.0#preloaded-blazor-framework-static-assets>.
233+
232234
### Set the environment in standalone Blazor WebAssembly apps
233235

234236
The `Properties/launchSettings.json` file is no longer used to control the environment in standalone Blazor WebAssembly apps.
@@ -407,12 +409,6 @@ New performance profiling and diagnostic counters are available for Blazor WebAs
407409
* <xref:blazor/performance/webassembly-browser-developer-tools?view=aspnetcore-10.0>
408410
* <xref:blazor/performance/webassembly-event-pipe?view=aspnetcore-10.0>
409411

410-
### Preloaded Blazor framework static assets
411-
412-
In Blazor Web Apps, framework static assets are automatically preloaded using [`Link` headers](https://developer.mozilla.org/docs/Web/HTTP/Reference/Headers/Link), which allows the browser to preload resources before the initial page is fetched and rendered. In standalone Blazor WebAssembly apps, framework assets are scheduled for high priority downloading and caching early in browser `index.html` page processing.
413-
414-
For more information, see <xref:blazor/fundamentals/static-files?view=aspnetcore-10.0#preloaded-blazor-framework-static-assets>.
415-
416412
### Opt-in to avoiding a `NavigationException` during static server-side rendering with `NavigationManager.NavigateTo`
417413

418414
Calling <xref:Microsoft.AspNetCore.Components.NavigationManager.NavigateTo%2A?displayProperty=nameWithType> during static server-side rendering (static SSR) throws a <xref:Microsoft.AspNetCore.Components.NavigationException>, interrupting execution before being converted to a redirection response. This can cause confusion during debugging and is inconsistent with interactive rendering behavior, where code after <xref:Microsoft.AspNetCore.Components.NavigationManager.NavigateTo%2A> continues to execute normally.

0 commit comments

Comments
 (0)