This chapter provided in-depth coverage of AngularJS internals. We need to get a good grasp of AngularJS inner-working in order to understand its performance characteristics and theoretical limits.
All performance-related improvements must start with scrupulous measurements so as to identify and understand existing bottlenecks. Starting the performance-tuning process without hard data is like shooting in the dark. Fortunately, there is an excellent Chrome extension, Batarang, that lets us inspect a running application.
We should pay special attention to the AngularJS
$digest loop execution time as it can determine users' perception of the entire application. Allow the
$digest loop to run for more than 50ms-100ms, and users will start perceiving ...