O'Reilly logo

Mastering Web Application Development with AngularJS by Pawel Kozlowski, Peter Bacon Darwin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

This chapter revolved around deployment-related concerns. We started off by discussing various network-related optimization techniques. In general, we can reduce the time a browser is spending on network-related tasks by pushing fewer bytes over the wire and limiting the number of individual requests.

Minification of HTML, CSS, and JavaScript files is a common technique used to trim down the number of bytes to be downloaded by a browser. The specification of the AngularJS Dependency Injection machinery forces us to write our JavaScript code in a minification-safe way. In practice it means that we should use array-style annotations for all the functions that declare dependencies to be resolved by the AngularJS DI subsystem.

We can combine ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required