This page shows a few RequireJS use cases including:
- Loading jQuery without using the prebuldeled require-jquery.js
- Defining modules
- Loading modules
- Using "legacy" scripts as AMD modules using shims
Open the source code starting from index.html and follow the comments labeled "Step 1 -" to "Step 10 -".