¡@

Home 

javascript Programming Glossary: isapploaded

How to preload a sound in Javascript?

http://stackoverflow.com/questions/5313646/how-to-preload-a-sound-in-javascript

0 function loadImage uri var img new Image img.onload isAppLoaded img.src uri return img function loadAudio uri var audio new.. function loadAudio uri var audio new Audio audio.onload isAppLoaded It doesn't works audio.addEventListener 'canplaythrough' isAppLoaded.. It doesn't works audio.addEventListener 'canplaythrough' isAppLoaded false It works audio.src uri return audio function isAppLoaded..