Link Relationships
HTML rel="prefetch"
Hints that a resource may be useful for a future navigation. It is discretionary and may be ignored; do not rely on it for a current critical dependency. The example belongs in a document head; resource URLs are illustrative. Supply actual resources and server configuration to observe network behavior.
Formal Syntax & Structure
html syntaxhtml
<link rel="prefetch" href="/next.html">Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| rel | space-separated relationship tokens | Include prefetch on an element that supports this relationship. |
| href | URL or fragment | Identifies the linked destination or resource. |
Working Example
Example Snippethtml
<!doctype html><html lang="en"> <head> <meta charset="utf-8"> <title>Example</title> <link rel="prefetch" href="/next.html"> </head> <body> <p>Example document</p> </body></html>Browser Compatibility
Minimum supported versions across modern rendering engines
Widely Available
Blink (modern)
Chrome
8
Yes
EdgeHTML / Blink
Edge
12
Yes
Gecko
Firefox
2
Yes
WebKit
Safari
13.1 (flag only)
No
Secure contexts required in the checked Chrome, Edge and Firefox data; Safari 13.1 is behind a preference, not enabled by default. Opera mirror row unresolved.
HTML Living Standard