HTML sl;video> preload property
The preload property indicates whether the video is loaded after the page is loaded, with three optional values: none, metadata, auto, please refer to the following example:
Video should not be loaded when the page loads:
<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 out . . .
Browser support
With the exception of Internet Explorer, the preload property is supported by all major browsers.
Definitions and usages
The preload property specifies whether the video is loaded after the page is loaded.
If the autoplay property is set, it is ignored.
Note: If you use the autoplay property preload, it will be ignored.
The difference between HTML 4.01 and HTML5
The label is a new HTML5 label.
Grammar
The property value
Value | Describe |
---|---|
auto | Indicates that once the page is loaded, the audio/video begins to load. |
metadata | Indicates that only audio/video metadata is loaded when the page is loaded. |
none | Indicates that audio/video should not be loaded after the page is loaded. |
HTML and video. Tags