如何关闭 Safari 的预取功能? [英] How to turn off Safari's prefetch feature?

查看:38
本文介绍了如何关闭 Safari 的预取功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Safari 有一项功能",可以在您输入网址时预加载页面.

Safari has a "feature" which preloads pages while you are typing in the url.

现在对于大多数用户来说,这确实是一项功能,可以加快页面加载速度.但对于 Web 开发者来说,这可能会带来麻烦——尤其是当它自动加载您之前使用过但目前无意运行的脚本(例如导入程序或后台脚本)时.

Now for most users this is indeed a feature, speeding up page loads. But for web developers it can cause trouble - especially when it automatically loads scripts (such as importers or background scripts) that you have used earlier but have no intention of running currently.

在 Safari 8.x 下会发生这种情况,但在旧版本上可能也是这种情况.

This happens under Safari 8.x but it is possible that this was also the case on older versions.

另外,请注意,此功能与DNS 预取"不同,后者是我遇到的唯一相关解释 - 我已禁用 DNS 预取但并没有解决此问题...

Also, note that this feature is distinct from "DNS prefetch" which is the only related explanation I have come across - I have disabled DNS prefetch and that did not solve this issue...

推荐答案

答案比我想象的要简单得多.:)

The answer is much simpler than I thought. :)

这篇关于如何关闭 Safari 的预取功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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