Skip to content

Instantly share code, notes, and snippets.

@WebReflection
Created June 23, 2015 10:35
Show Gist options
  • Select an option

  • Save WebReflection/ba7d631bfd0fb5263e75 to your computer and use it in GitHub Desktop.

Select an option

Save WebReflection/ba7d631bfd0fb5263e75 to your computer and use it in GitHub Desktop.

Revisions

  1. WebReflection created this gist Jun 23, 2015.
    1 change: 1 addition & 0 deletions document.ready.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    !function(r,e,a,d,y){function $(f){d?f():r.push(f)}e.ready=$;e.addEventListener(a,y=function(){d=!e.removeEventListener(a,y,d);while(y=r.shift())y()},d)}([],document,'DOMContentLoaded',!1);