Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/web/html/attributes/rel/dns-prefetch/index.md
6552 views
---
title: rel=dns-prefetch slug: Web/HTML/Attributes/rel/dns-prefetch page-type: html-attribute-value browser-compat: html.elements.link.rel.dns-prefetch
---

{{HTMLSidebar}}

The dns-prefetch keyword for the {{HTMLAttrxRef("rel", "link")}} attribute of the {{HTMLElement("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

{{Specifications}}

Browser compatibility

{{Compat}}