Images & Media

preload="auto"

Allows the browser to fetch media data ahead of playback, potentially the full resource. Consider bandwidth and data-saving preferences before selecting it for many players. On audio and video; an empty value means auto, while the missing/invalid default is browser-defined. The example requires a media file to observe loading.

Formal Syntax & Structure

html syntaxhtml
preload="auto"

Parameters & Attributes

NameTypeDescription
preloadkeywordAllows the browser to fetch media data ahead of playback, potentially the full resource. Consider bandwidth and data-saving preferences before selecting it for many players.

Working Example

Example Snippethtml
<video controls preload="auto" src="sample.mp4" width="320"></video>
HTML Reference