Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
UIWebView 是否自动预取页面?
这是我的情况:
主页是一个本地 HTML 文件,其中包含 3 个指向其他本地 HTML 文件的链接。在其中一个中,我有一个从 Internet 加载页面的 iframe。UIWebView 可以尝试以静默方式预取此页面吗?
我倾向于不,但我还没有找到明确的答案。
UIWebView 模仿浏览器页面,因此如果您打开一个本地文件,该文件具有一个引用远程页面的 iframe,那么是的,iframe 将尝试加载远程页面,但直到该页面作为 WebView 的活动 html 页面加载后才会加载。