load-script
load-script copied to clipboard
Dynamic script loading
Hey guys, I'm trying to load web components inside of non-angular projects, and I'm looking at load-script as a solution, do you guys have any examples of this?
``` js let abort = loadScript('woot.js', fn); abort(); ``` should detach the element from the DOM, and prevent the callback from being fired (by ignoring it as a last resort).
We need to show what the error was if the script failed to load
It would be convenient.
Hello, I'm doing an audit of the packages we use to ensure we're compliant with licenses and noticed that this package is marked as MIT, but does not have a...