docs: function ready (fn) {
    if (isReady()) {
      return fn()
    } else if (document.addEventListener) {
      document.addEventListener('DOMContentLoaded', fn)
    } else {
      document.attachEvent('onreadystatechange', function () {
        if (isReady()) fn()
      })
    }
  }