preload
audio - This enumerated attribute is intended to provide a hint to the browser about what the author thinks will lead to the best user experience. It may have one of the following values:
- <code>none</code>: indicates that the audio should not be preloaded;
- <code>metadata</code>: indicates that only audio metadata (e.g. length) is fetched;
- <code>auto</code>: indicates that the whole audio file could be downloaded, even if the user is not expected to use it;
- the <em>empty string</em>: synonym of the <code>auto</code> value.
If not set, its default value is browser-defined (i.e. each browser may have its own default value). The spec advises it to be set to <code>metadata</code>.
<strong>Usage notes:</strong>
- The <code>autoplay</code> attribute has precedence overĀ <code>preload</code>. If <code>autoplay</code> is specified, the browser would obviously need to start downloading the audio for playback.
- The browser is not forced by the specification to follow the value of this attribute; it is a mere hint. video - This enumerated attribute is intended to provide a hint to the browser about what the author thinks will lead to the best user experience. It may have one of the following values:
- <code>none</code>: indicates that the video should not be preloaded.
- <code>metadata</code>: indicates that only video metadata (e.g. length) is fetched.
- <code>auto</code>: indicates that the whole video file could be downloaded, even if the user is not expected to use it.
- the <em>empty string</em>: synonym of the <code>auto</code> value.
If not set, its default value is browser-defined (i.e. each browser may have its default value). The spec advises it to be set to <code>metadata</code>.
<strong>Usage notes:</strong>
- The <code>autoplay</code> attribute has precedence over <code>preload</code>. If <code>autoplay</code> is specified, the browser would obviously need to start downloading the video for playback.
- The specification does not force the browser to follow the value of this attribute; it is a mere hint.
trait Attr
class Object
trait Matchable
class Any