How can I reuse the audio a browser already downloaded so it doesn't download it again in other pages that use the same audio file?
I'm making an audio heavy page. I'm using the JavaScript audio element. The code looks like this: JavaScript: var x = new Audio("x.mp3"); var y = new Audio("y.mp3"); var z = new Audio("z.mp3"); function playMe(n){ n.play(); } HTML: <button class="button" onclick="playMe(x)")>Play</button> <button class="button" onclick="playMe(y)")>Play</button> <button class="button" onclick="playMe(z)")>Play</button> Some pages use up to 30 different audio files so this will consume a lot of bandwith. This can potentially kill the project, as it's a one-man effort with almost no budget. The audios are being