Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(item): apply will-change only when list is active #7656

Merged
merged 1 commit into from
Aug 20, 2016

Conversation

jgw96
Copy link
Contributor

@jgw96 jgw96 commented Aug 11, 2016

Short description of what this resolves:

This fixes layers being made for each list item even when a user is not actually reordering when using reorder. This change means that will-change only gets applied when the user is actually reordering the list, and as soon as the user has "dropped" the item the layers get removed. Previous behavior created a layer for every list item even when a user was not reordering the list, causing high memory usage and bad scrolling perf. This has been tested on chrome 52 on desktop (the latest stable), and a Nexus 7 running Android 6.0.1 (completely stock).

The video below is of me using a reordered list with this fix with the layer viewer option in chrome dev tools on.
will-change-fix.zip

Ionic Version: 2.x

@manucorporat manucorporat self-assigned this Aug 18, 2016
@manucorporat manucorporat merged commit 4bcd815 into master Aug 20, 2016
@jgw96
Copy link
Contributor Author

jgw96 commented Aug 22, 2016

thanks for merging @manucorporat !

@jgw96 jgw96 deleted the reorder-perf-fix branch August 22, 2016 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants