Best practices for managing and deploying large JavaScript apps

后端 未结 7 1777
佛祖请我去吃肉
佛祖请我去吃肉 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:10

    Just a sidenode - Steve already pointed out, you should really "minify" your JS files. In JS, whitespaces actually matter. If you have thousand lines of JS and you strip only the unrequired newlines you have already saved about 1K. I think you get the point.

    There are tools, for this job. And you should never modify the "minified"/stripped/obfuscated JS by hand! Never!

提交回复
热议问题