UIWebView 是否自动预取页面?

发布于 2025-01-04 02:25:51 字数 173 浏览 2 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

北方。的韩爷 2025-01-11 02:25:51

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文