#jln.js ###a simple modular framework for JavaScript will continuously be extended
####How to embed:
- embed jln.js (core) before all other modules:
<script src="./jln.js"></script>
- embed modules after the main jln.js file, e.g.:
<script src="./modules/jln.$.js"></script>
####Check if a module is loaded:
require(["jln.moduleA", "jln.moduleB", "..."]);
- If it is not embedded, it will be loaded via a synchronous XMLHttpRequest (or asynchronously if a callback function is specified)
- By passing the URL of the relevant file to
require()
, You can also load other modules such as jQuery this way.