HTML <video> preload Attribute

Definition and Usage

preload The attribute specifies whether and how to load a video when the page is loaded.

preload The attribute allows authors to provide hints to the browser about what they believe will result in the best user experience. In some cases, this attribute may be ignored.

Attention:If autoplay is present, ignore preload Attribute.

Example

The author believes that videos should not be loaded when the page is loaded:

<video controls preload="none">
  <source src="shanghai.mp4" type="video/mp4">
  <source src="shanghai.ogg" type="video/ogg">
  Your browser does not support the video tag.
</video>

Try It Yourself

Syntax

<video preload="auto|metadata|none">

Attribute Value

Value Description
auto The author believes that browsers should load the entire video when the page is loaded.
metadata The author believes that browsers should only load metadata when the page is loaded.
none The author believes that browsers should not load videos when the page is loaded.

Browser Support

The numbers in the table indicate the first browser version to fully support this property.

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
4.0 9.0 4.0 3.1 10.5