text: export default function (urls, test, callback) {
      let remaining = urls.length
    
      function maybeCallback () {
        remaining = --remaining
        if (remaining < 1) {
          callback()
        }
      }
    
      if (!test()) {
        urls.forEach(({ type, url, options = { async: true, defer: true, module:false }}) => {
          const isScript = type === 'script'
          const tag = document.createElement(isScript ? 'script': 'link')
          if (isScript) {
            tag.src = url
            tag.async = options.async
            tag.defer = options.defer
            options.module?tag.type="module":""
          } else {
            tag.rel = 'stylesheet'
                tag.href = url
          }
          tag.onload = maybeCallback
          document.body.appendChild(tag)
        })
      } else {
        callback()
      }
    }
    