Speeding up AngularJS apps with simple optimizations

  • Before diving into code, consider how to best architect your application to avoid performance challenges that dirty-checking faces in large quantities of Objects.

  • Be mindful of ng-repeats — how much data are you expecting back? How much weight is that going to add to Angular’s $digest cycle?

  • Not everything needs to be “Angular.” In Directives there are many cases we need to work with pure DOM.

  • Keep checking out the Angular project on GitHub, as there are often some great hidden features that can be found from upcoming releases. That’s how I came across the “bind once” functionality.

  • The more $$watchers there are, the slower your application will be, and with some of the performance enhancements above, even their simplicity can make a huge difference

https://www.binpress.com/tutorial/speeding-up-angular-js-with-simple-optimizations/135

Leave a Reply

Your e-mail address will not be published. Required fields are marked *