d-oliveros/angular-sticky — pull request #15 by dmgts (2014-10-22 14:10:48+00:00)
Title: Improved performance

In the previous version we invoked functions element.css/addClass/removeClass every single time whenever the scrolling event has triggered. It's an extremely expensive operation because it forces reflow (recalculation) even if we haven't changed anything. It can be seen in complex layouts.
Now we call aforementioned functions only when we change state of the sticky block.