Home : Internet : HTML : Audio : Preload

HTML5 Audio: preload

preload is an attribute of the audio tag in HTML5. There are three possible values, as illustrated in these examples:

<audio preload="auto"></audio>
<audio preload="metadata"></audio>
<audio preload="none"></audio>

Here's what they mean:

Value Description
auto Load the entire audio file as soon as the page loads.
metadata Load only metadata as soon as the page loads.
none Do not load the audio file or any metadata until the user presses play.


Author: ,  Originally published: 2012-08-10