-
Notifications
You must be signed in to change notification settings - Fork 55
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
WebView2 takes 2-3 seconds to load any webapp #1298
Comments
Screencast.2021-05-15.00.55.51.mp4Indeed, while this is recorded from a VM. It's present in multiple configurations. And reported by multiple users of Tauri. |
@lingamy I can tell you outright that the speed is almost instant in the edge-chromium browser with any content, local and remote including the built content shared in these videos. In my experience, using the Edge browser as a runtime vs the evergreen runtime does decrease the loading time but it still not that great (1-3 seconds vs 5-6 seconds). Here is a video I took with the dev branch of the edge browser vs version webview.mp4 |
@tensor-programming, thank you for the info. To confirm I understand correctly, you are saying:
Am I understand this correctly? We need to analyze trace file in order to further trouble shoot and figure out where time is spend. Could you please correct the corresponding trace of your scenario with WPR and share the trace with us? It will be great if you can collect 3 traces, one for each of the above scenario. |
Yes all of this is correct. I will generate a trace and get back to you. |
@lingamy Here the trace I recorded with WPR:
Edge dev channel's version is 92.0.891.1 My experience is
|
Btw I believe this benchmark is also from Microsoft dev? |
@wusyong , thank you for collecting the trace! Will you be able to collect a trace with the attached browser/edge profile in additional to the first level triage profile you have used? You need to update the file extension from .log to .wprp, I have to rename the file to use an extension supported by github in order to attach the file. |
@lingamy I've updated the trace with the profile you provided. |
I got some updates that might fix or progress this issue. |
Do you think that this change (using the dot) speeds up webview2 to the point that it sometimes isn't fast enough to keep up with tauri? Because now we are experiencing a heisenboot (circa 50% of the time the resource can't load). |
@wusyong , looking at your notes at tauri-apps/tauri#2124, you commented that he best thing to do is still wait for WebView2Feedback#172. For WebView2Feedback#172, we just had a dev started to investigation this week, once we make enough progress, we will update the github issue.
|
By the way, this is still happening. |
By the way, this has still not been fixed. Refreshing takes 2-3 seconds. |
I am using v108.0.1462.54 Webview2 runtime, and this issue are still occuring, only if connected to a network, and it also applies on loading iframes. It takes about 1 - 3 seconds to complete to show up the local html pages. |
I have the same behaviour in the Outlook desktop client with an Office Addin, Microsoft Insights or our own addin. I have pinned this down to the Windows Insider build as the same versions for everything on different base OS has indeed highlighted the performance bottleneck with a spinning loading icon before any comms to the web service. For additional clarity the local environments on both when using Outlook Web Access are instant in both cases, this is pinned to WebView2 and the OS IMO |
I'm experiencing the same issue. I've tried loading the page multiple times, and in the first seven attempts, it worked well. However, after that, it started to slow down considerably. Please find the log below for further reference. 11:12:59.3123 [INFO] =========================================================== |
There is workaround for this 2s loading issue mentioned in #2381 (comment) |
Description
WebView2 takes 2-3 seconds to load any webapp (~2s on i9)
Version
Runtime:
I installed the latest WebView2 via the Evergreen Bootstrapper from here:
https://developer.microsoft.com/en-us/microsoft-edge/webview2/#download-section
OS: Win10
Repro Steps
E.g. build this todomvc project (or any other webapp): https://github.com/tauri-apps/smoke-tests/tree/dev/rust/yew/todomvc
Start it on Windows. Notice: The window shows up as blank for 2-3 seconds until the webapp appears. Every time.
If you build it on linux or mac where Tauri uses WebKitGTK/Webkit, it loads instantly. (Tauri does not slow this down on Windows, so it must be due to WebView2.)
AB#33649981
The text was updated successfully, but these errors were encountered: