The HTML preload attribute
Quick answer
The HTML preload attribute hints how much of the media to load before playback. It is used on the <audio> and <video> elements.
Overview
The preload attribute hints how much media to preload. It is used on the <video>, <audio>, <source> and <track> elements.
It configures native audio or video playback — the source, controls, autoplay and looping behavior, the poster image, and text tracks. It works with the <video>/<audio> elements and their nested <source> and <track> children.
Syntax
<video src="clip.mp4" preload="metadata" controls></video>
Values
| Value |
|---|
| none | metadata | auto (default) |