rel=dns 预取

<link> 元素的 rel 属性的 dns-prefetch 关键字向浏览器暗示用户可能需要来自目标资源来源的资源,因此浏览器可以通过抢先执行该来源的 DNS 解析来改善用户体验。

¥The dns-prefetch keyword for the rel attribute of the <link> element is a hint to browsers that the user is likely to need resources from the target resource's origin, and therefore the browser can likely improve the user experience by preemptively performing DNS resolution for that origin.

详细信息请参见 使用 dns 预取

¥See Using dns-prefetch for more details.

规范

Specification
HTML Standard
# link-type-dns-prefetch

¥Specifications

浏览器兼容性

BCD tables only load in the browser

¥Browser compatibility

也可以看看

¥See also

  • 投机加载 用于与 <link rel="dns-prefetch"> 和其他类似性能改进功能进行比较。