Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

when I use wkwebview to load local html,I find it renders slower than uiwebview

I have UIWebView, WKWebView and loadHTMLString:baseURL: to load local HTML but wkWebView is slower than UIWebVIew. What is the reason? How can I improve the rendering speed?

like image 486
yang liu Avatar asked Oct 30 '22 09:10

yang liu


1 Answers

Yes, I have the problem too. there is a solution by Timur Bernikowich: https://github.com/bernikowich/NSTViewWarmuper

But, WKWebView is also slower than UIWebView with using loadHTMLString:baseURL: method.

For more see here: https://stackoverflow.com/a/42109186/5557953

like image 147
yuanjilee Avatar answered Nov 15 '22 05:11

yuanjilee