The problem with the audio tag
Feb 27, 2012     06:50:00

I was faced with an interesting problem while adding the sound effects to locking and unlocking my iPhone in CSS3.

When I was trying to specify the "src" attribute of audio source tag it cause Safari overload and the browser stopped responding. Here is the code:

<audio id="soundLock" controls="true">
	<source src="/p/iphone/sound/lock.ogg" type="audio/ogg" />
	<source src="/p/iphone/sound/lock.mp3" type="audio/mpeg" />