This is a small collection of scripts showing how to use require.js. It's only one of several ways of setting up a require.js project, but it's enough to get started.
At its core, require.js is about three things:
- Dependency management
- Dynamic script loading
The following files show how these are achieved.
(You can see this code in action here: http://williambowers.net/sandbox/requirejs/)