Skip to content

Instantly share code, notes, and snippets.

@JoshBarr
Created April 23, 2014 22:41
Show Gist options
  • Save JoshBarr/11234997 to your computer and use it in GitHub Desktop.
Save JoshBarr/11234997 to your computer and use it in GitHub Desktop.
(function() {
var Site = {
init: function() {
},
start: function() {
document.addEventListener("DOMContentLoaded", this, false);
},
handleEvent: function(e) {
switch(e.type) {
case "DOMContentLoaded":
this.init();
break;
}
}
};
if (document.readyState !== "complete") {
Site.start();
} else {
Site.init();
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment