Most Efficient Multipage RequireJS and Almond setup

后端 未结 5 864
花落未央
花落未央 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条回答
  •  感情败类
    2020-12-07 10:37

    You can use any content delivery network (CDN) like MaxCDN to ensure your js files get served to everyone. Also I'll suggest you to put your js files in the footer of your html code. Hope that helps.

提交回复
热议问题