Images & Media

preload="metadata"

Hints that only information such as duration or dimensions is initially needed. Useful for a media player before playback; the amount downloaded depends on container format and browser behavior. 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="metadata"

Parameters & Attributes

NameTypeDescription
preloadkeywordHints that only information such as duration or dimensions is initially needed. Useful for a media player before playback; the amount downloaded depends on container format and browser behavior.

Working Example

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