Re:Faster AngularJS Rendering with ReactJS
by GamblersFallacy on Monday April 21, 2014 @06:35AM
(#7620508)
With your native angular plnkr example, change ng-repeat to:
ng-repeat="line in data track by $index"
Now try timing again.
Re:Faster AngularJS Rendering with ReactJS
by littleiffel on Monday April 21, 2014 @04:46PM
(#7623696)
I did try your example, and yes track by $index helps but only on updating the DOm not initial rendering. Post got updated
Re:Faster AngularJS Rendering with ReactJS
by GamblersFallacy on Tuesday April 22, 2014 @05:31AM
(#7626616)
Interesting update. I never linked ng-repeat to the initial render lag with my app (one page, 1200 - 3000 bindings), otherwise the performance is great.
I've assumed it was a server side issue I could tune before pushing to production. Thanks, now I know where to look.
Mobile Webapps should provide feedback to the user as fast as possible on input. With long lists that has been quite problematic so far, and I have been looking for solutions to make the DOM update faster. ReactJs is a great help here.
btw, I am the author of this article.