I suggest mastering alternative strategies for ng-repeat if you want to optimize something.
I spent a year and a half writing 25,000 lines of AngularJs code with no problems! We were bad developers and did not even minify and consolidating our JavaScript. The JavaScript was in ~30 different files. (We wanted to min and consolidate but the usual tools were not allowed in our secure and constrained environment.)
Most of the noise about using RequireJs is theoretical. I have yet to read a post where a team could not satisfy performance requirements established by the business using AngularJs and had to refactor to using RequireJs for lazy loading.
If the wire is your worry...
- consolidate your JavaScript into one file,
- minimizing that file,
- compress files across the wire
Even Brian Ford recommends not using RequireJs with AngularJs. http://briantford.com/blog/huuuuuge-angular-apps
I would like to post more on the mechanics of AngularJs and why I feel this way, but time is short today.
No comments:
Post a Comment