Skip to content
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
@mgol

Description

@mgol

Using ngAnimate can cause serious layout thrashing. Compare two videos:

  1. Our current app, ngAnimate included: http://youtu.be/kUf9vDYIlt0
  2. 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:

  1. Timeline with ngAnimate included:
    with-ng-animate
  2. Timeline without ngAnimate:
    without-ng-animate

One of my colleagues, @jrencz, created videos of analogous operations on his 4-year-old MacBook, notice the slowness:

  1. ngAnimate included: http://www.youtube.com/watch?v=FEmSiWq1qAI
  2. ngAnimate excluded: http://www.youtube.com/watch?v=bshDaxUAzU4

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions