English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Usage of the <video> preload attribute, online instance demonstration of how to use the <video> preload attribute, browser compatibility, syntax definition, and detailed information about its attribute values, etc.
Do not load the video when the page is not opened:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title Basic Tutorial Website(oldtoolbag.com)</title> </head> <body> <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> </body> </html>Test to see ‹/›
IEFirefoxOperaChromeSafari
Except for Internet Explorer, all mainstream browsers support the preload attribute.
The preload attribute specifies whether and how the author thinks the video should be loaded when the page is loaded.
The preload attribute allows the author to provide the browser with information about him/She believes that it will bring the best user experience tips. In some cases, this attribute can be ignored.
Note: If the autoplay feature is present, the preload attribute will be ignored.
<video> tag is an HTML5 New tag.
<video preload="auto|metadata|none">
Value | Description |
---|---|
auto | Indicates that audio should start loading once the page is loaded/Video. |
metadata | Indicates that audio should be loaded only after the page is loaded/Metadata of the video. |
none | Indicates that audio should not be loaded after the page is loaded/Video. |