title: jQuery: How do you preload sound?
body: <p>I have a website that plays sound when you click a button.</p>
  
  <p>This is how I do it</p>
  
  <pre><code>function PlaySound(soundfile) {
      $('#soundContainer').html("&lt;embed src='/uploads/sounds/" + soundfile + "' hidden=true autostart=true loop=false&gt;");
  }
  </code></pre>
  
  <p>How do you preload the sound file beforehand?</p>
  
  <p>Thank you.</p>