Skip to content

Stop embedding JS files in Endpoints and Server assemblies #58783

@mkArtakMSFT

Description

@mkArtakMSFT

Stop embedding JS files in Endpoints and Server assemblies, so they benefit from compression. Instead make them ship as static web assets. We can put them in the runtime pack for asp.net core and pick them in the SDK. (P1)
blazor.web.js goes from 180 KB to 43KB with brotli.
blazor.server.js goes from 146.58 KB to 35KB with brotli.

Metadata

Metadata

Assignees

Labels

area-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing one

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions