Link Preload
The tag defines the relationship between the current document and an external resource. The tag is most often used to link to external style sheets. The element is an empty element, it contains attributes only.
Stylesheet Preload
<link rel="preload" as="style" href="url" />
Javascript Preload
<link rel="preload" as="script" href="url" />
Attribute | Value | Description |
---|---|---|
rel | preload | Specifies the relationship between the current document and the linked document |
as | style | The type of resource in the attribute |
href | The path to the resource in the attribute |