preload

A resource hint, <link rel="preload">, that makes the browser download a file needed for the current page right away at high priority.

In more detail

Use it for resources the preload scanner cannot discover early, such as a web font referenced only from CSS or the hero image for Largest Contentful Paint. A preload that is never used, or whose as or crossorigin value does not match the real request, wastes bandwidth and can download the file twice.

Example

<link rel="preload" href="/fonts/inter.woff2" as="font" type="font/woff2" crossorigin>

Related terms

Taught in

References