simulate ipad click sound with mp3/ogg (web development)
<p>I am simulating a "click" sound on every anchor tag and submit button click on the mobile website that I'm working on using the following code:</p>

<pre><code> &lt;audio id="mySoundClip" style=" display:none; visibility:hidden;"&gt;
            &lt;source src="@Url.Content("~/Content/audio/Click.ogg")" type="audio/ogg"&gt;
            &lt;source src="@Url.Content("~/Content/audio/Tock.mp3")" type="audio/mpeg"&gt;
              Your browser does not support the audio element.
          &lt;/audio&gt;

        &lt;script type="text/javascript"&gt;
          var homeURL = '@Url.Action("Index", "Home")';

          var audio = $("#mySoundClip")[0];
          $("[href]").click(function () {
            //alert("a clicked");
            audio.play();
          });

          $(":submit").click(function () {
            //alert("submit button clicked");
            audio.play();
          });
     &lt;/script&gt;
</code></pre>

<p>It's working as expected but there is a slight delay in when the sound file actually plays while clicking the anchor tags/submit buttons. Is there a way to play the sound file a little sooner than when it actually plays so it will seem like a native click?</p>
