Inject

Dependency Management Got Awesome

CommonJS and AMD module loading, cross-origin fetching, localStorage caching, and more.

Download Inject Current version is 0.7.1. See all versions.

This text string has been loaded dynamically using Inject. The adjacent code is all you need! Point to Inject, tell it where to find additional JavaScript modules, and start your program.

html
<script src="/path/to/inject.js"></script>
<script>
  Inject.setModuleRoot("/path/to/modules");
  require.run("program");
</script>