Paste this inside the onclick of this button (correct the URL in the third line):
var script = document.createElement("script"); script.setAttribute("type", "text/javascript"); script.setAttribute("src", "url to the script file here"); document.getElementsByTagName("head")[0].appendChild(script);
That the script will start loading immediately after line 4 is executed, and as soon as it is loaded, it will be executed or otherwise used.
user191966
source share