preload link

A link tag with rel="preload" that tells the browser to download an important file early, before it discovers it is needed.

In more detail

Preloading helps for files the browser finds late, such as fonts referenced from CSS. Preloading too much competes with more important downloads.

Example

next/font preloads font files and next/image with priority preloads the hero image.

Related terms

Taught in

References