I have multiple pages on a site using RequireJS, and most pages have unique functionality. All of them share a host of common modules (jQuery, Backbone, and more); all of th
I created example repository to demonstrate these 3 kinds of optimization.
It can help us to have better understanding of how to use r.js.
r.js
https://github.com/cloudchen/requirejs-bundle-examples