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:
audio: Audio file, as typically used in
document: An HTML document intended to be embedded by a or
embed: A resource to be embedded inside an <embed> element.
fetch: Resource to be accessed by a fetch or XHR request, such as an ArrayBuffer, WebAssembly binary, or JSON file.