export default async function waitForDomReady () {
  return new Promise(resolve => {
    globalThis.addEventListener('DOMContentLoaded', resolve)
    document.readyState !== 'loading' && resolve()
  })
}
