UIWebView 是否自动预取页面?
UIWebView 是否自动预取页面?
这是我的情况:
主页是一个本地 HTML 文件,其中包含 3 个指向其他本地 HTML 文件的链接。在其中一个中,我有一个从互联网加载页面的 iframe。 UIWebView 是否会尝试静默预取此页面?
我倾向于不,但我还没有找到明确的答案。
Does UIWebView auto prefetch pages?
This is my situation:
The main page is a local HTML file containing 3 links to other local HTML files. In one of them I have an iframe that loads a page from the Internet. Could the UIWebView be attempting to prefetch this page silently?
I'm inclining to no, but I haven't found a definite answer yet.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
UIWebView 模仿浏览器页面,因此,如果您打开一个本地文件,其中包含引用远程页面的 iframe,那么 iframe 将尝试加载远程页面,但直到该页面作为 WebView 的活动 html 页面加载为止。
UIWebView mimics a browser page, so if you open a local file which has an iframe that references a remote page then yes the iframe will attempt to load the remote page but not until that page is loaded as the WebView's active html page.