code: function _ready(fn) {
      if (
          d.attachEvent ? d.readyState === 'complete' : d.readyState !== 'loading'
      ) {
          fn();
      } else {
          d.addEventListener('DOMContentLoaded', fn);
      }
  }
docs: IE9+