webView timeout?
hello,
when a webview loads a remote url, is it possible to check connection problems, e.g. set a timeout or monitor online status etc. what's best practice?
thanks, uno
1 Answer
-
Hello,
I think you can usewebview.addEventListener('error', function(e) { /* your code */ });
.And you can use the load event on the same way.
Of course you can use setTimeout as well, which you can clear if load or error event occurs.