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

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

Activity

  1. joegaudet commented on Sep 25, 2013

    @joegaudet

    This is the same issue as #4011, but definitely would love to have it addressed.

  2. mgol commented on Sep 25, 2013

    @mgol
    MemberAuthor

    @joegaudet Probably. My issue has more data, though. ;)

  3. joegaudet commented on Sep 25, 2013

    @joegaudet

    Yeah, we experience the same thing our app. We have tables of 400 + rows, which basically makes the app unusable. I put a guard in the animation code, but that ends up thrashing the filtering on repeaters.... so I guess waiting for @matsko et al.

  4. bfricka commented on Sep 26, 2013

    @bfricka

    These looks like exact screen grabs of the timeline profiles for EPG app we're building right now.

  5. matsko commented on Sep 26, 2013

    @matsko
    Contributor

    The plan is to performance-tune ngAnimate using caching. Getting to work on this today and tomorrow actually.

  6. joegaudet commented on Sep 26, 2013

    @joegaudet

    @matsko sweet man, can't wait. Thanks as always for your hard work man.

  7. matsko commented on Sep 26, 2013

    @matsko
    Contributor

    My pleasure :)

  8. matsko commented on Oct 1, 2013

    @matsko
    Contributor

    @mzgol @joegaudet please try testing out your code using the JS files mentioned in #4011 (comment)

  9. mgol commented on Oct 1, 2013

    @mgol
    MemberAuthor

    @matsko Is this available as a commit somewhere? I use a patched AngularJS version to add support for pushState (see #3325) so I need it as a commit and not just built files.

  10. matsko commented on Oct 1, 2013

    @matsko
    Contributor
  11. mgol commented on Oct 1, 2013

    @mgol
    MemberAuthor

    @matsko Unfortunately, after applying your patch there's still severe layout trashing with ngAnimate present in app dependencies; all those repaints disappear if the dependency is removed.

  12. ghost assigned on Oct 2, 2013
  13. matsko commented on Oct 10, 2013

    @matsko
    Contributor

    @mzgol merging something in so I'll be closing this issue soon.

  14. added a commit that references this issue on Oct 11, 2013
    b1e604e
  15. matsko commented on Oct 11, 2013

    @matsko
    Contributor

    Landed as ddcbf76

  16. mgol commented on Oct 11, 2013

    @mgol
    MemberAuthor

    I confirm the issue is fixed on current master. Thanks again. Good work. :)

  17. bfricka commented on Oct 11, 2013

    @bfricka

    Definitely. Congrats @matsko. 👍

  18. jeffbcross commented on Oct 11, 2013

    @jeffbcross
    Contributor

    👍 👍 👍

  19. added 2 commits that reference this issue on Jan 27, 2014
    cf97da9
    ff4491d
  20. changed the title [-]ngAnimate causes serious layout trashing[/-] [+]ngAnimate causes serious layout thrashing[/+] on Aug 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions