code: function isLoaded (eleOrWindow) {
    return !!(eleOrWindow.complete || eleOrWindow.readyState === 'complete' ||
      // If the passed in thing is a Window, infer loaded state from
      (eleOrWindow.document && eleOrWindow.document.readyState === 'complete'))
  }
docs: Whether the specified element/window has been loaded already.
  @param {!Element|!Window} eleOrWindow
  @return {boolean}