Mastering Web Application
Writing Robust AngularJS Web Applications Putting it all together Let's summarize what we know about AngularJS inner working by ...
Chapter 11 Performance tuning – set expectations, measure, tune, and repeat Performance tuning requires a disciplined approach w ...
Writing Robust AngularJS Web Applications There is a caveat: the comparisons need to be simple to fit into 25μs. Unfortunately i ...
Chapter 11 Performance tuning of AngularJS applications We would like to have applications that are "fast". But "fast" might mea ...
Writing Robust AngularJS Web Applications A given watchExpression is executed at least once (usually twice) in each and every tu ...
Chapter 11 Always remove all the calls to the consol.log in your production code and use tools like jshint to assist you in this ...
Writing Robust AngularJS Web Applications Any DOM operation is slow and computed properties are extra slow. The real problem is ...
Chapter 11 Think about your UI Each watch registered on a scope represents a "moving part" on a page. If we remove all the unnec ...
Writing Robust AngularJS Web Applications Here the getNameLog() is simply returning a name and uses console.log to simulate an " ...
Chapter 11 As an example of a situation where we can narrow down impacted scopes, let's consider a typeahead (autocomplete) dire ...
Writing Robust AngularJS Web Applications Entering the $digest loop less frequently Usually the $digest loop is triggered from w ...
Chapter 11 element.text(dateFilter(new Date(), 'hh:mm:ss')); //repeat in 1 second $timeout(update, 1000); } update(); } }; }) Su ...
Writing Robust AngularJS Web Applications Limit the number of turns per $digest loop Models that are harder to stabilize will re ...
Chapter 11 We can supply a third true argument to the $watch method in order to indicate that AngularJS should use deep-comparis ...
Writing Robust AngularJS Web Applications Consider the size of expressions being watched Even if we manage to avoid deep-watches ...
Chapter 11 Many bindings made easy The ng-repeat directive, when used on data sets of substantial size, can quickly result in ma ...
Writing Robust AngularJS Web Applications Running time of a $digest loop is proportional to number of watches and their executio ...
Packaging and Deploying AngularJS Web Applications After all the laborious coding, testing, and performance tuning there comes t ...
Packaging and Deploying AngularJS Web Applications Improving network-related performance As web developers we should offer our u ...
Chapter 12 var ctrlFn = function($scope, $location) {}; console.log(ctrlFn.toString()); This technique upon execution, will log ...
«
10
11
12
13
14
15
16
17
18
19
»
Free download pdf