I want to preload the audio files on my website. I am using the following code on an html page.
<embed src="cheer.swf" hidden="true" autostart=false style="height:0px; width:0px"> <embed src="click.swf" hidden="true" autostart=false style="height:0px; width:0px"> <embed src="doowip.swf" hidden="true" autostart=false style="height:0px; width:0px">
But all sound files are played at the top of the page. how can i stop auto play audio files.
Also how can I preload ipad safari files?
<audio id="genclick" src="click.wav" type="audio/wav" > <audio src="doowip.wav" type="audio/wav" > <audio src="cheer.wav" type="audio/wav" >
the above code does not load the file until I play it from javascript ..
document.getElementById("genclick").play();
where am i wrong
source share