How to avoid the lag when playing sound 1st time?
Monkey Targets Forums/HTML5/How to avoid the lag when playing sound 1st time?
| ||
Hi folks, right now I experience a lag on FireFox 3.n when I play a sound the first time? Do you have any tips to avoid that or is it unavoidable? And yes, I am pre loading it. Maybe I will try to play it silently at the beginning but I wonder what else could help this. Ah, and I am using wav files. Cheers Michael |
| ||
I would use ogg files, since HTML5 supports them natively (no need for any browser codecs or plugins). Ogg supports also streaming, so you don't have to load the sound before playing it. NCH WavePad is a free tool to create and edit ogg files. |
| ||
Thanks for the tip. |