Managing JavaScript complexity in a large project

前端 未结 2 1240
北恋
北恋 2021-02-09 23:14

What should I use to manage growing number of JavaScript files in my application?

We are building a django application with several apps. Each app has different function

2条回答
  •  一生所求
    2021-02-10 00:00

    Typically, grouping libraries by commonality (like your second example) would be preferred. However, more importantly would be making sure you have namespaced or otherwise make them unique so that you are unlikely to get naming collisions with other potential scripts.

提交回复
热议问题