Skip to content

Built-in support for client-side decompression of precompressed resources #26091

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

Open
mrpmorris opened this issue Sep 19, 2020 · 5 comments
Open
Labels
affected-most This issue impacts most of the customers area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one feature-blazor-boot-up feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly feature-templates Pillar: Dev Experience Priority:2 Work that is important, but not critical for the release severity-minor This label is used by an internal tool
Milestone

Comments

@mrpmorris
Copy link

mrpmorris commented Sep 19, 2020

Problem

Regarding this advice to access compressed DLLs for static hosted websites
https://docs.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/webassembly?view=aspnetcore-3.1#compression

When publishing to a static website it is obvious that building for Release results in smaller files than building for Debug. However, it is not obvious that we should then go to the Microsoft Docs pages and see if there is some JavaScript to use in order to reduce the download size even further.

Suggestion

Perhaps when creating a Blazor WASM app and ASP.NET Hosted is not selected, the template for the Index.html should include the suggested script in https://docs.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/webassembly?view=aspnetcore-3.1#compression by default.

It's better that the JS is there because it is prominent. The developer then has the option of removing it if they wish.

I imagine seeing a 14 MB download on first experience of using Blazor for a Release build would be enough to put many people off using it.

@pranavkm pranavkm added the area-blazor Includes: Blazor, Razor Components label Sep 20, 2020
@mkArtakMSFT mkArtakMSFT added the enhancement This issue represents an ask for new feature or an enhancement to an existing one label Sep 21, 2020
@mkArtakMSFT mkArtakMSFT added this to the Backlog milestone Sep 21, 2020
@ghost
Copy link

ghost commented Sep 21, 2020

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@SteveSandersonMS SteveSandersonMS changed the title [Blazor] Download compressed resources by default Built-in support for client-side decompression of precompressed resources Oct 7, 2020
@SteveSandersonMS SteveSandersonMS added affected-most This issue impacts most of the customers severity-minor This label is used by an internal tool labels Oct 7, 2020 — with ASP.NET Core Issue Ranking
@mrpmorris
Copy link
Author

@guardrex The host might not support web.config, they are static files that can be hosted anywhere.

@guardrex
Copy link
Contributor

@mrpmorris Sorry about that. Not related. My bad. I'll remove that remark here.

@javiercn javiercn added feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly feature-blazor-boot-up labels Apr 20, 2021
@pranavkm pranavkm modified the milestones: Backlog, .NET 7 Planning Oct 19, 2021
@pranavkm pranavkm added the Priority:2 Work that is important, but not critical for the release label Oct 28, 2021
@mkArtakMSFT mkArtakMSFT modified the milestones: .NET 7 Planning, Backlog Nov 11, 2021
@ghost
Copy link

ghost commented Nov 11, 2021

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@ghost
Copy link

ghost commented Dec 21, 2023

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affected-most This issue impacts most of the customers area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one feature-blazor-boot-up feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly feature-templates Pillar: Dev Experience Priority:2 Work that is important, but not critical for the release severity-minor This label is used by an internal tool
Projects
None yet
Development

No branches or pull requests

6 participants