Closed MartijnHarmenzon closed 4 years ago
Since you're using the standalone browser payload, the loadjs library is available via the loadjs
global:
<script src="https://unpkg.com/loadjs@4.2.0/dist/loadjs.min.js"></script>
<script>
loadjs(["/path/to/foo.js", "/path/to/bar.js"], function() {
/* foo.js and bar.js loaded */
});
</script>
Hope that helps! I updated the README to make this clearer.
@amorey Thanks for the quick reply and solution. I can confirm it works.
I'm running a Vanilla JS project without any builders or frameworks. I would like to make use of loadjs but I'm getting the error:
My code:
How to include loadjs in a Vanilla project?