Best practices for managing and deploying large JavaScript apps

后端 未结 7 1783
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-04 14:38

What are some standard practices for managing a medium-large JavaScript application? My concerns are both speed for browser download and ease and maintainability of developm

7条回答
  •  臣服心动
    2020-12-04 15:17

    Read the code of other (good) javascript apps and see how they handle things. But I start out with a file per class. But once its ready for production, I would combine the files into one large file and minify.

    The only reason, I would not combine the files, is if I didn't need all the files on all the pages.

提交回复
热议问题