问题描述
我有UIWebView
,WKWebView
和loadHTMLString:baseURL:
来加载本地HTML,但是wkWebView
的速度比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?
推荐答案
是的,我也有问题. Timur Bernikowich有一个解决方案: https://github.com/bernikowich/NSTViewWarmuper
Yes, I have the problem too. there is a solution by Timur Bernikowich:https://github.com/bernikowich/NSTViewWarmuper
但是,使用loadHTMLString:baseURL:
方法时WKWebView
也比UIWebView
慢.
But, WKWebView
is also slower than UIWebView
with using loadHTMLString:baseURL:
method.
有关更多信息,请参见此处: https://stackoverflow.com/a/42109186/5557953
For more see here: https://stackoverflow.com/a/42109186/5557953
这篇关于当我使用wkwebview加载本地html时,我发现它的渲染速度比uiwebview慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!