rel="dns-prefetch"
Baseline 2025Newly available
Since September 2025, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
Thedns-prefetch keyword for therel 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.
SeeUsing dns-prefetch for more details.
In this article
Specifications
| Specification |
|---|
| HTML> # link-type-dns-prefetch> |
Browser compatibility
See also
- Speculative loading for a comparison of
<link rel="dns-prefetch">and other similar performance improvement features.