Ways to improve AngularJS performance even with large number of DOM elements

前端 未结 6 464
自闭症患者
自闭症患者 2021-02-02 11:14

I\'m evaluating whether or not to use AngularJS for a web project, and I\'m worried about the performance for a feature I need to implement. I would like to know if there\'s a

6条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-02 11:21

    Always profile first to find the real bottleneck. Sometimes it might be not something you initially suspect. I would suspect your own code first, then Angular (high number of watchers being the main feature leading to sluggish performance). I described how to profile and solve different performance problems in an Angular app in detailed blog post https://glebbahmutov.com/blog/improving-angular-web-app-performance-example/

提交回复
热议问题