Skip to content

Instantly share code, notes, and snippets.

@tyx
Created March 18, 2011 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tyx/876477 to your computer and use it in GitHub Desktop.
Save tyx/876477 to your computer and use it in GitHub Desktop.
function loadScript() {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "http://maps.google.com/maps/api/js?sensor=false&callback=hh.init";
document.body.appendChild(script);
}
window.onload = loadScript;
var hh = (function() {
init: function() {
console.log('woot');
}
return init();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment