/hoop

Working on a touch UI (suggestion from @kennymeyers)

Primary LanguageJavaScript

hoop

Working on a touch UI (suggestion from @kennymeyers)

notes

I dug up this non-jQuery document.ready function, but then I realized I don't really need it on this little project. So instead, I'll save it! 🎓

function ready(fn) {
  if (document.readyState != 'loading'){
    fn();
  } else {
    document.addEventListener('DOMContentLoaded', fn);
  }
}

ready(function (){
  console.log("hello! we are ready!");
});

Source: http://youmightnotneedjquery.com/#ready