I’m trying to transition between loading of different web pages by hiding the webView while it is loading a page. However, I’m seeing that some image intensive websites are causing webViewDidFinishLoading to fire too soon and when I show the webView at that point then for a split second you get a view of the previous page. Any ideas on how to resolve this?
I’m trying to transition between loading of different web pages by hiding the webView
Share
If there’s Javascript on the page, you may need to wait for it to finish. The easiest way seems to be to send some javascript to the page to be executed:
Having said that, I seem to still see cases where the webview isn’t quite updated within webViewDidFinishLoad.