DNS Prefetch

rel=dns-prefetch #

::: section-content 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.

See Using dns-prefetch for more details. :::

Specifications #

::: _table #

Specification #

HTML Standard
[# link-type-dns-prefetch]{.small}


:::

Browser compatibility #

::: _table Desktop Mobile


               Chrome    Edge   Firefox   Internet Explorer   Opera   Safari   WebView Android   Chrome Android   Firefox for Android   Opera Android   Safari on IOS   Samsung Internet

dns-prefetch 46 ≤79 3 No 33 No 46 Yes 4 No No Yes :::

See also #

::: section-content

  • Speculative loading for a comparison of <link rel="dns-prefetch"> and other similar performance improvement features. :::

::: _attribution © 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/dns-prefetch{._attribution-link} :::