Search code examples
htmlgoogle-chromehtml5-audio

Chrome ignoring audio preload="metadata"


My code is basically this

<audio controls preload="metadata">
  <source src="linktofile.wav" type="audio/ogg">
</audio>

In Firefox 18.0.1 - it results in 8.4 KB data download (checked on Firebug).
But in Chrome 24.0.1312.52 m - it starts downloading the entire file (In developer tools - it shows download size in MBs).

What gives?


Solution

  • As I understand preload values are hints for the browser, not absolute commands. In other words, they are a suggestion for how the browser should behave. The browser may or may not follow the hint so don't be surprised if it doesn't always work.

    http://www.mediacollege.com/internet/html/audio/preload.html