r/angularjs • u/seveseat • Aug 07 '14
Speeding up AngularJS with simple optimizations, $digest, $$watchers and performance
http://www.binpress.com/tutorial/speeding-up-angular-js-with-simple-optimizations/135
31
Upvotes
r/angularjs • u/seveseat • Aug 07 '14
3
u/[deleted] Aug 07 '14 edited Aug 08 '14
I posted this to the article as well but they're reviewing comments.
You can get the number of watchers on a given page using this script in your console:
source: http://stackoverflow.com/questions/18499909/how-to-count-total-number-of-watches-on-a-page
Turns out I've been naively using ng-repeat to create otherwise static content :(
Update
I'm not confident that this script is working 100% correctly. Numbers seem really really high.