Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop embedding JS files in Endpoints and Server assemblies #58783

Open
mkArtakMSFT opened this issue Nov 4, 2024 · 0 comments · May be fixed by #58721
Open

Stop embedding JS files in Endpoints and Server assemblies #58783

mkArtakMSFT opened this issue Nov 4, 2024 · 0 comments · May be fixed by #58721
Assignees
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one
Milestone

Comments

@mkArtakMSFT
Copy link
Member

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.

@mkArtakMSFT mkArtakMSFT added area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one labels Nov 4, 2024
@mkArtakMSFT mkArtakMSFT added this to the 10.0-preview1 milestone Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants