MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2
https://aka.ms/webview2
444 stars 53 forks source link

IsLoading function #1672

Open MonkeybreadSoftware opened 3 years ago

MonkeybreadSoftware commented 3 years ago

We would like to know with a simple function call whether the web viewer is currently busy loading a website.

Without implementing necessarily ourselves with navigation started/finished callbacks.

it's a simple flag and I think other browsers offer it. e.g. IE WebBrowser had a status property for this and WKWebView on macOS has an isLoading property.

or is there something like this already otherwise?

AB#35522181

MonkeybreadSoftware commented 3 years ago

See also https://github.com/MicrosoftEdge/WebView2Feedback/issues/1673, so we could at any point just query for the UI whether it is loading and the current progress percentage.

champnic commented 3 years ago

Hey @MonkeybreadSoftware - thanks for the feature request! I've added this as a scenario on our backlog, but as you noted the current workaround is to do this yourself using the navigation events. Thanks!