HTML <video> preloadProperty

HTML <video> Tag

Example

The video 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 Yourself »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Except for Internet Explorer, all major browsers support the preload attribute.


Definition and Usage

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

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

Note:If the autoplay attribute is used, preload will be ignored.


Differences between HTML 4.01 and HTML5

The <video> tag is a new tag in HTML5.


Syntax

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

Property value

Value Description
auto Indicates that the audio/video should start loading as soon as the page loads.
metadata Indicates that only 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> Tagother extensions