Hitting WKWebView on UINavigationController causing ui lag

I have two view managers. At first it just nudges the second navigation controller. Inside the controller of the second view I have WKWebView

and it is loaded into a method viewDidLoad

. Its content is a local html file which is very simple. Only 3 buttons and one image.

Here's the problem. During the transition, the second controller displays only a white screen. Once navigated, the WKWebView gets its content and shows the html. There is a 0.5 second delay between the end of the transition and the loading of the content.

Is there a way to speed up or pre-render the WKWebView

content?

+3


source to share





All Articles