This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ngAnimate causes serious layout thrashing #4124
Closed
Description
Using ngAnimate can cause serious layout thrashing. Compare two videos:
- Our current app,
ngAnimate
included: http://youtu.be/kUf9vDYIlt0 - Our current app with just one difference - removing
ngAnimate
from the list of modules our app depends on: http://youtu.be/210VHxidY0o
I recorded Timeline profiles for an operation of switching the tab from the second to the third one; version with ngAnimate
causes a massive amount of reflows:
One of my colleagues, @jrencz, created videos of analogous operations on his 4-year-old MacBook, notice the slowness:
ngAnimate
included: http://www.youtube.com/watch?v=FEmSiWq1qAIngAnimate
excluded: http://www.youtube.com/watch?v=bshDaxUAzU4