fetch('link-to-external-js-library')
.then(response => response.text())
.then(text => eval(text))
example, loading lodash
:
fetch('https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js')
.then(response => response.text())
.then(text => eval(text))