Skip to content

PERF003 · Preload missing as

Severity: warning

Every <link rel="preload"> must have an as attribute naming the resource type (style, script, font, image, …). A preload without as is flagged.

A <link rel="preload"> without an as attribute is ignored by the browser (or fetched a second time), wasting the preload.

Add an as attribute matching the resource type:

<link rel="preload" href="/app.css" as="style" />