Delay swapping out the web view until the new web view has had a chance to render. Issue #1780
This commit is contained in:
parent
e5a9205747
commit
bdd79aead5
|
@ -437,7 +437,10 @@ private extension WebViewController {
|
||||||
webView.configuration.userContentController.add(WrapperScriptMessageHandler(self), name: MessageName.imageWasShown)
|
webView.configuration.userContentController.add(WrapperScriptMessageHandler(self), name: MessageName.imageWasShown)
|
||||||
|
|
||||||
self.renderPage()
|
self.renderPage()
|
||||||
|
|
||||||
|
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
|
||||||
self.recycleWebView(webViewToRecycle)
|
self.recycleWebView(webViewToRecycle)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue