Is there a simpler (native perhaps?) way to include an external script file in the Google Chrome browser?
Currently I’m doing it like this:
document.
If anyone, fails to load because hes script violates the script-src "Content Security Policy" or "because unsafe-eval' is not an allowed", I will advice using my pretty-small module-injector as a dev-tools snippet, then you'll be able to load like this:
imports('https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.js')
.then(()=>alert(`today is ${moment().format('ffffdd')}`));
this solution works because: