rel=预渲染

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

Non-standard: This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

<link> 元素的 rel 属性的 prerender 关键字向浏览器暗示用户下次导航可能需要目标资源,因此浏览器可以通过抢先获取和处理资源来改善用户体验 - 例如, 通过获取其子资源或在屏幕外的背景中执行一些渲染。

¥The prerender keyword for the rel attribute of the <link> element is a hint to browsers that the user might need the target resource for the next navigation, and therefore the browser can likely improve the user experience by preemptively fetching and processing the resource — for example, by fetching its subresources or performing some rendering in the background offscreen.

此功能已被 推测规则 API 取代。

¥This feature is superceded by the Speculation Rules API.

规范

No specification found

No specification data found for html.elements.link.rel.prerender.
Check for problems with this page or contribute a missing spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.

¥Specifications

浏览器兼容性

BCD tables only load in the browser

¥Browser compatibility

也可以看看

¥See also

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