function domReady() {
    var fns = [],
      listener,
      doc = typeof document === 'object' && document,
      hack = doc && doc.documentElement.doScroll,
      domContentLoaded = 'DOMContentLoaded',
      loaded =
        doc && (hack ? /^loaded|^c/ : /^loaded|^i|^c/).test(doc.readyState);

    if (!loaded && doc)
      doc.addEventListener(
        domContentLoaded,
        (listener = function () {
          doc.removeEventListener(domContentLoaded, listener);
          loaded = 1;
          while ((listener = fns.shift())) listener();
        }),
      );

    return function (fn) {
      loaded ? setTimeout(fn, 0) : fns.push(fn);
    };
  }
/*!
   * domready (c) Dustin Diaz 2014 - License MIT
   */
domready (c) Dustin Diaz 2014 - License MIT
domready ( c ) Dustin Diaz 2014 - License MIT
function domReady() {
    var fns = [],
      listener,
      doc = typeof document === 'object' && document,
      hack = doc && doc.documentElement.doScroll,
      domContentLoaded = 'DOMContentLoaded',
      loaded =
        doc && (hack ? /^loaded|^c/ : /^loaded|^i|^c/).test(doc.readyState);
    if (!loaded && doc)
      doc.addEventListener(
        domContentLoaded,
        (listener = function () {
          doc.removeEventListener(domContentLoaded, listener);
          loaded = 1;
          while ((listener = fns.shift())) listener();
        }),
      );
    return function (fn) {
      loaded ? setTimeout(fn, 0) : fns.push(fn);
    };
  }
function domReady ( ) { var fns = [ ] , listener , doc = typeof document === 'object' && document , hack = doc && doc . documentElement . doScroll , domContentLoaded = 'DOMContentLoaded' , loaded = doc && ( hack ? / ^loaded|^c / : / ^loaded|^i|^c / ) . test ( doc . readyState ) ; if ( ! loaded && doc ) doc . addEventListener ( domContentLoaded , ( listener = function ( ) { doc . removeEventListener ( domContentLoaded , listener ) ; loaded = 1 ; while ( ( listener = fns . shift ( ) ) ) listener ( ) ; } ) , ) ; return function ( fn ) { loaded ? setTimeout ( fn , 0 ) : fns . push ( fn ) ; } ; }
domready (c) Dustin Diaz 2014 - License MIT
domready ( c ) Dustin Diaz 2014 - License MIT