I have successfully implemented all the necessary functionalities, but I noticed a delay in loading the popup.html after adding an external javascript file. This file is only a few lines long, so the delay is quite frustrating.
To eliminate this lag, I believe that asynchronously loading the javascript file could be a solution.
The reference to the file in popup.html looks like this:
<script src="https://domain.com/myexternalscript.js"></script>
However, I am uncertain about how to implement asynchronous loading for this file. Can someone provide guidance on how to do this?