title: importScripts while error thrown from one of the script
body: <p>In my chrome extension (manifest V3) I want to import some scripts like jquery and more.</p>
  <p>Inside my backgound.js I have:</p>
  <pre><code>try {
      importScripts('/js/jquery-3.4.1.min.js', '/js/common.js');
  } catch (e) {
      console.error('importScripts: ' + e);
  }
  ...
  calling to getCookie...
  </code></pre>
  <p>inside <code>common.js</code> I have function like:</p>
  <pre><code>async function getCookie(key) {   
      return ...;
  }
  </code></pre>
  <p>but when I load the extension I get the error:</p>
  <blockquote>
  <p>background.js:22 importScripts: TypeError: Cannot read property 'createElement' of undefined</p>
  </blockquote>
  <p>This error comes from the Jquery library</p>
  <p>and after I get another error:</p>
  <blockquote>
  <p>Uncaught (in promise) ReferenceError: getCookie is not defined</p>
  </blockquote>
  <p>because the error in jquery it doesn't load the common script? how can I fix that?</p>
  <p>Is there a more stable solution to import the scripts? so that error in one script will not cause a fail to other scripts?</p>