Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML video preload Attribute

HTML

HTML video Tag Reference HTML

Example

A video that should not be loaded when the page loads:

<

video

controls

preload

=

"

none

"

<

source

src

=

"

movie.mp4

"

type

=

"

video/mp4

"

<

source

src

=

"

movie.ogg

"

type

=

"

video/ogg

"

Your browser does not support the video tag.

video

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers except Internet Explorer support the preload attribute.


Definition and Usage

The preload attribute specifies whether the video should be loaded when the page loads.

If the autoplay attribute is set, this attribute is ignored.

Note: The preload attribute is ignored if the autoplay attribute is used.


Differences between HTML 4.01 and HTML5


Syntax

Attribute values

Value Description
auto Indicates that the audio/video starts loading once the page loads.
metadata Indicates that only the metadata of the audio/video is loaded after the page loads.
none Indicates that the audio/video should not be loaded after the page loads.

HTML video Tag Reference HTML