Skip to content

[Pre6] Blazor preloading change #35632

@maraf

Description

@maraf

[EDIT by guardrex to add the article metadata]

PR dotnet/aspnetcore#62225 (preview 6)

We changed how we do preloading. Instead of using link headers, we have switched to <LinkPreload /> component.
The reasons for this change are

  1. Having a component, we can rely on <base href="..." /> tag to correctly identify the "root" of blazor application within ASP.NET Core app.
  2. Having a component, it's easy to turn the feature off, just remove the component.

The change requires a change to user applications by placing component somewhere near after the base tag

<base href="/" />
+<LinkPreload />

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions