resource hint
A link element that tells the browser in advance about something it will need, such as preload, prefetch or preconnect, so it can start early.
In more detail
Hints change priorities rather than behaviour: the page still works without them, just more slowly. Wrong hints waste bandwidth, so only hint what you will really use.
Related terms
- preload — A resource hint, <link rel="preload">, that makes the browser download a file needed for the current page right away at high priority.
- prefetch — A resource hint, <link rel="prefetch">, that downloads a file at low priority during idle time because the user will probably need it on a later page.
- preconnect — A resource hint, <link rel="preconnect">, that makes the browser do the DNS lookup, TCP handshake and TLS negotiation with another server before any request is sent.
- link element — The HTML element, usually in the head, that connects the page to another resource such as a stylesheet, a web app manifest or a resource hint.
Taught in
- Critical Rendering Path: Preload, Prefetch And Scripts — Frontend Architecture & Web Platform
- Core Web Vitals: Measuring And Optimizing LCP, INP, And CLS — Frontend Architecture & Web Platform