Attribute preload

<link rel="preload" href="style.css" as="style" />
<link rel="preload" href="main.js" as="script" />
<link rel="preload" href="sintel-short.mp4" as="video" type="video/mp4" />

The browser caches preloaded resources so they are available immediately when needed. (It doesn’t execute the scripts or apply the stylesheets.)

Resource hints, for example, preconnectand prefetch, are executed as the browser sees fit. The preload, on the other hand, is mandatory for the browser. Modern browsers are already pretty good at prioritizing resources, that’s why it’s important to use preload sparingly and only preload the most critical resources.

What types of content can be preloaded?

Many content types can be preloaded.
The possible as attribute values are: