HTML <video> preload Attribute

❮ HTML <video> tag


<video width="340" height="260" controls preload>
  <source src="video.mp4" type="video/mp4">
  <source src="video.webm" type="video/webm">
  Your browser does not support the video tag.


The preload attribute is specifies to the browser about what the developer thinks will lead to the best user experience with regards to what content is loaded before the video is played.

The autoplay attribute has precedence over preload.

If autoplay is specified, the browser would obviously need to start downloading the video for playback.

Standard Syntax

<video preload="emptyString|auto|metadata|none">...</video>

Browser Support


Attribute Values

Value Description
emptyString Equivalent of the auto value.
auto Specifies that the whole video file can be downloaded, even if the user is not expected to use it.
metadata Specifies that only video metadata (e.g. length) is fetched.
none Specifies that the video should not be preloaded.
❮ HTML <video> tag