Easy Tutorial
❮ Att P Align Av Prop Controller ❯

HTML Audio/Video DOM preload Attribute

HTML Audio/Video DOM Reference Manual

Example

The video starts loading as soon as the page loads:


Definition and Usage

The preload attribute sets or returns whether the audio/video should be loaded immediately after the page loads.

The preload attribute allows authors to give hints to the browser about what they believe will provide the best user experience. This attribute is ignored in some cases.


Browser Support

All major browsers support the preload attribute.

Note: Internet Explorer 8 and earlier versions do not support this attribute.


Syntax

Set the preload attribute:

Return the preload attribute:

Attribute Values

Value Description
auto Indicates that the audio/video should start loading as soon as the page loads.
metadata Indicates that only the metadata of the audio/video should be loaded after the page loads.
none Indicates that the audio/video should not be loaded after the page loads.

Technical Details

| Return Value: | String value, auto|metadata|none | | --- | --- |


❮ Att P Align Av Prop Controller ❯