Skip to content

PERF004 · Font preload missing crossorigin

Severity: warning

Every <link rel="preload" as="font"> must include the crossorigin attribute. A font preload without it is flagged.

A font preload without crossorigin does not match the actual (CORS) font request, so the preloaded file is never used and the font downloads twice.

Add crossorigin to the font preload:

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