From 06d507a744863aac9ee1f94c56d1cab583c6a79d Mon Sep 17 00:00:00 2001 From: hunter2009 <24166618@qq.com> Date: Wed, 24 Nov 2021 11:49:43 +0800 Subject: Modifed link_prefetching_faq doc content Modify prefetch content description for more semantics --- files/zh-cn/web/http/link_prefetching_faq/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'files') diff --git a/files/zh-cn/web/http/link_prefetching_faq/index.html b/files/zh-cn/web/http/link_prefetching_faq/index.html index 7d2842221f..605b3341b8 100644 --- a/files/zh-cn/web/http/link_prefetching_faq/index.html +++ b/files/zh-cn/web/http/link_prefetching_faq/index.html @@ -94,15 +94,15 @@ translation_of: Web/HTTP/Link_prefetching_FAQ
user_pref("network.prefetch-next", false);-
但是,从理论上讲,如果需要禁用链接预取,则实现一定存在问题。 如果它不能正确运行,我们宁愿改进实现,也不希望用户找到并调整一些晦涩的偏好。
+但是,从理论上讲,如果需要禁用链接预取,实现就一定会存在问题。 如果它不能正确运行,我们宁愿改进实现,也不希望用户找到并调整一些隐藏的偏好。
-Basically, there are two ways of looking at this issue: websites can already cause things to be silently downloaded using JS/DOM hacks. prefetching is a browser feature; users should be able to disable it easily.
It is important that websites adopt <link>
tag based prefetching instead of trying to roll-in silent downloading using various JS/DOM hacks. The <link>
tag gives the browser the ability to know what sites are up to, and we can use this information to better prioritize document prefetching. The user preference to disable <link>
tag prefetching may simply encourage websites to stick with JS/DOM hacks, and that would not be good for users. This is one reason why prefetching is enabled by default.
基本上,有两种方法可以解决此问题:网站已经可以使用JS / DOM之类的hacks方式静默下载内容。 预取是浏览器功能; 用户应该能够轻松禁用它。
+基本上,有两种方法可以解决此问题:网站可以使用JS / DOM之类的hacks方式静默下载内容。 预取是浏览器功能; 用户应该能够轻松禁用它。
网站采用基于<link>
标记的预取非常重要,而不是尝试使用各种JS / DOM之类的hacks方式进行静默下载。 <link>
标记使浏览器能够知道正在访问哪些站点,我们可以使用此信息更好地确定文档预取的优先级。 用户偏好禁用<link>
标记预取可能只是鼓励网站坚持使用JS / DOM之类的hacks方式,这对用户不利。 这是默认情况下启用预取的原因之一。