-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Blazor WASM terrible runtime performance from mobile browser #43090
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
Comments
@ScottKane thanks for contacting us. Do you experience the same type of problems with a new app created from the template that does not involve MudBlazor? |
@ScottKane One quick check you could do would be visiting https://aspnet.github.io/quickgridsamples/ from your device. That doesn't involve MudBlazor so it might help to diagnose whether the issue is specific to MudBlazor or not. |
@SteveSandersonMS Accessing that site from mobile is better but still has a delay of 2-3 secs on button presses, it doesn't seem to eat on click events though which would be an improvement. |
Even if the issues are being caused by MudBlazor, I'm struggling to figure out what they could be doing that's making the perf this bad on mobile but not on desktop browsers. Their components are structured fairly similarly to my own with no glaringly obvious issues. |
Actually testing the experience from a PC browser emulating a low/mid end device shows pretty much the same behaviour |
I've no doubt you can find devices or set a CPU throttling level such that it becomes slow. And it's good that you're testing to see how things will work on the specific devices you care about. Nonetheless I am still surprised about the 6T taking multiple seconds to navigate. I tried just now with a fairly low-spec mobile device (iPad Air 2, 8 years old) and it was more or less fine. The first navigation click did take maybe 800ms to complete (which is when it will be caching the interpreter-transformed instructions), but subsequent navigation clicks went down to somewhere between instant and 200-300ms depending on which page. It felt as fast as any other website on this old device. Of course, on a more recent device - a 3-year old iPhone - it was instant from the start. According to https://browser.geekbench.com/, your OnePlus 6T should be a bit faster than an iPad Air 2, though admittedly only about 1/3 the speed of a recent iPhone. So I guess there must be something more to it than just the CPU benchmarks. |
The default MudBlazor sample app is nowhere near as slow as my production app, the only thing I can think is that I have |
Hi @ScottKane. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
@ScottKane Please let us know if you end up tracking down the issue and it turns out to be a framework issue. |
Very fast on my Pixel 3. Every action is < 500 ms |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. See our Issue Management Policies for more information. |
Is there an existing issue for this?
Describe the bug
When deploying my app to Azure app service and accessing via a PC web browser, performance is fine, everything feels responsive and button clicks are immediate. When accessing from a mobile browser it's a completely different story. Clicking any button takes 4-5 seconds to do anything (which would be kind of ok if these buttons were making web requests, but they're not, they are just opening modals), on click events sometimes don't even fire at all so you have to press buttons multiple times for anything to happen. I've AOT'd the app to try and improve things but from what I can see, runtime perf is no better but users have to wait 30 secs to initially load.
Client has the following build configuration:
The story is the same with the simplest of apps, create an app using the MudBlazor template (https://github.com/MudBlazor/Templates), deploy to the web and access via a mobile browser. See the delay on button presses.
This terrible performance is from a OnePlus 6T so not even a low end device. Something needs to be addressed here as this is unacceptable for a production app.
Expected Behavior
I expect button clicks to be responsive (certainly not taking 4-5 seconds)
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
6.0.302
Anything else?
No response
The text was updated successfully, but these errors were encountered: