Skip to content

Instantly share code, notes, and snippets.

Created May 7, 2011
What would you like to do? modules - no loader required
// LABjs style
<script src="js/LAB.min.js"></script>
.wait(function() {
//do something
// vs.
// proposed style
<script type="text/es6">
module _ = require("underscore.js");
module $ = require("jquery.js");
module mycode = require("mycode.js");
// do something
// Note that by simply listing all of the scripts we need
// right here in the HTML file as we would for LABjs, they can be
// loaded in parallel by the browser.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment