加载一个网站时,为何多次击中webViewDidStartLoad? [英] Whe webViewDidStartLoad was hit several times when loading one website?

查看:47
本文介绍了加载一个网站时,为何多次击中webViewDidStartLoad?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚发现,当WebView加载www.abc.com时,多次击中webViewDidStartLoad.为什么不只有一个?

I just found that when the WebView is loading www.abc.com, and webViewDidStartLoad were hit for several times. Why not only one?

推荐答案

这取决于网页.

例如,如果网页中包含来自Google Ads的广告,则它必须加载您的网页并加载广告,或者如果它具有Facebook登录名,则它必须执行另一个请求以恢复该图像.

For instance, if the webpage has ads that come from Google Ads then it has to load your webpage and load the ads, or if it has Facebook Login it has to do another request to bring back that image.

对于abc.com,我想说您要多次点击它,因为它会将您重定向到http://abc.go.com/.

In the case of abc.com I'd say you're hitting it several times because it is redirecting you to http://abc.go.com/.

这篇关于加载一个网站时,为何多次击中webViewDidStartLoad?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆