O'Reilly logo

Mastering AngularJS Directives by Josh Kurz

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

Optimization of the directives

User experience in an application is one of the biggest factors, if not the biggest, to its overall grade. No application should ever be given a passing grade if it is not responsive and has a sluggish feel to it. A JavaScript application has the chance to be on either ends of the speed spectrum because of the wide range of implementation options. There can be more than a few potential bottlenecks in a JavaScript application, and even more in an AngularJS application, which should be noted and approached correctly.

The biggest issue with any AngularJS application that uses the 1.2.0 and above branch is the digest cycle.

The digest cycle is an AngularJS-specific issue and is the cause of most speed-related issues. This ...

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