dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.37k stars 9.99k forks source link

.NET 8 Blazor Interactive Auto Mode Connection Priority #52597

Closed arthastheking113 closed 10 months ago

arthastheking113 commented 10 months ago

Is there an existing issue for this?

Describe the bug

In Blazor with Interactive Auto Mode is enable Globally. When user with slow internet speed first load the page, Blazor doesn't wait for Signal R to connect before start downloading .wasm files, and connect successfully after ~90% of .wasm files are downloaded (I think because those .wasm files took all the internet bandwidth). This causing the user with slow internet speed cannot interact or navigate between pages for some period of time starting from they first load the page until Signal R is connected.

I think the downloading progress of .wasm files is too aggressive and consume all the available bandwidth causing Signal R cannot be connected, and Navigation between pages is also pending until ~90% of .wasm files are downloaded.

Expected Behavior

I think there are 2 options in my opinion:

Steps To Reproduce

Exceptions (if any)

No response

.NET Version

8.0.100

Anything else?

Screen shoot of Signal R is not connected yet but .wasm files are starting downloading causing there is no bandwidth left for Signal R. image

Signal R is only connected after ~90% of .wasm files finished downloading.

Navigating to Weather page also pending since It has to wait for .wasm finished downloading

image

surayya-MS commented 10 months ago

Dupe of https://github.com/dotnet/aspnetcore/issues/52154