Another option is to inject the script:
A. At onDOMContentLoaded and B. Inside a setTimeout(func, 0) block
Then the browser's loading indicator will stop before the script has been loaded, executed and all its assets loaded.
Useful for social media widgets, etc.