Skip to content

Instantly share code, notes, and snippets.

Created December 19, 2012 06:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/4334806 to your computer and use it in GitHub Desktop.
Save anonymous/4334806 to your computer and use it in GitHub Desktop.
Testing the Web Audio API
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
</head>
<body>
<script>
(function ( window, document ) {
// Pinched domready
// http://www.dustindiaz.com/smallest-domready-ever/
var readyState = function ( fn ) {
if( /in/.test( document.readyState ) ) {
window.setTimeout( function () {
readyState( fn );
}, 9 );
} else {
fn();
}
},
init = function () {
console.log("INIT!");
};
// DOM ready
readyState( init );
}( this, this.document ));
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment