DNS Prefetch in HTML
Learn link rel=dns-prefetch: a tiny, cheap hint that looks up a server's address early. See what DNS is, what the hint saves, how it differs from preconnect, and which hosts deserve it.
Learn link rel=dns-prefetch: a tiny, cheap hint that looks up a server's address early. See what DNS is, what the hint saves, how it differs from preconnect, and which hosts deserve it.
Start learning web performance with HTML: how a browser loads a page, what blocks it, which HTML attributes and tags speed things up (preload, preconnect, defer, async, lazy loading, responsive images), the Core Web Vitals, and a map of every lesson in this section. Includes a loading timeline simulator, a Core Web Vitals quiz, and a which-tool-fits matcher.
Learn link rel=preconnect: open the connection to an important server early. Understand why crossorigin matters, how many to use, and how to pick the right origins, with a connection lab and an origin picker.
Learn link rel=prefetch: quietly download files for the page a visitor will probably open next. See when it pays off, when it wastes data, and what must never be prefetched.
Learn link rel=preload: fetch the files your page needs but finds late, such as fonts and CSS background images. Includes a discovery timeline and a checker for as and crossorigin mismatches.
Learn what resource hints are and how to choose between dns-prefetch, preconnect, preload and prefetch. Includes a hint builder and a live checker for common mistakes.