Show HN: CommonJS module implementation for the browser
I built a really simple CommonJS module implementation for defining/requiring javascript modules in a browser environment that doesn't load scripts asynchronously (or at all, for that matter).
https://github.com/bgrohman/cardboard.js
I originally did this for fun and to learn about CommonJS, but I'm curious to see if anyone else thinks this might be useful.
4 comments
[ 3.0 ms ] story [ 19.3 ms ] threadThe idea is that you get to use CommonJS-style module definition in conjunction with old-school script loading using script tags. This could be used during a transition of a large project to something more robust like RequireJS. Or it could be used if your application has to support high-latency connections where you need to minimize the number of HTTP requests.