Most Efficient Multipage RequireJS and Almond setup

后端 未结 5 872
花落未央
花落未央 2020-12-07 09:55

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

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-07 10:56

    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.

    https://github.com/cloudchen/requirejs-bundle-examples

提交回复
热议问题