Javascript file organization and design

后端 未结 3 1006
梦如初夏
梦如初夏 2021-02-14 07:28

Really getting into web development and in particular JS so I was wondering what were the best practices in terms of JS file organization and delegation of responsibilities. I a

3条回答
  •  北海茫月
    2021-02-14 08:01

    One large JS file is really not that "bad" compared to using multiple JS files.

    You can compress it on the server if your worried about band width, look into gzip or deflate.

提交回复
热议问题