tiny, dependency-free JavaScript loader — intended primarily for loading polyfills or common libraries up front
;
(scripts are loaded and executed sequentially)
you can also pass an object in order to assign arbitrary attributes to the
generated script
tag, e.g. for
Subresource Integrity:
;
prompted by
Loading Polyfills Only When Needed,
which explains why document.write
should be avoided
see samples
directory for usage examples