My thought is that Opus HTML5 is just that - HTML5 so adding a <script> tag with a src for an external library is no different to adding the same script tag to HTML5 developed in Dreamweaver or Atom or Brackets. The loading time will be the same. You can check this in the network tab of your debug tools.
There are issues that affect loading and executing and if you want to induce brain ache you can read about them here:
https://www.html5rocks.com/en/tutorials ... t-loading/I question however what you are trying to achieve. Your application is built in Opus, therefore your primary JavaScript library is Opus.js. Unless, you are trying to mess with what happens to the code that Opus has generated (in which case you deserve brain ache), you should be able to load your script after Opus has finished and execute it's functions when necessary.
For example, in my Canvas project. nothing in the external script loads until the function is called so it's all controlled from my Opus project. Secondly, my script tag uses the defer attribute:
Code:
<script src=canvas.js defer> </script>
This loads the script after the page has parsed. Technically, it's not necessary. Nothing in my script interferes with the loading of page but as I don't need it immediately. it seems unlikely that the user will reach the page that loads the function from the script before it is ready. It this was going to happen, I would not have used defer, but I would still only have functions for the script execute when the page was up and running.
On this point, if you absolutely must have the functions in your external library available immediately, then you simply need to add the script tag in the head box of the setting without attributes such as defer. This will download and execute the script before the document is parsed. However, if the JS library is large, then the speed of your internet connection will have an impact on loading the page as seen in the browser - but if the script also executes something, this has to complete first - all of which adds to a delay before you get a page to the user.
If you want the script to download and run but not block the page, you can try the async attribute but be warned that it better not interfere with anything that is happening with the page as it's like to throw errors.
I'll repeat what I said earlier, that personally, unless necessary, it is best to download scripts that do not run any functions until they are called by something in your Opus project. Allow the Opus bits of code to parse and execute first.
</mack>