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

Improve scroll performance #202

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

MichaelEischer
Copy link
Contributor

These commits improve scroll performance by avoiding some unnecessary layout recalculations. This should help a bit with the performance issues in #148.

Even though the modified border width and padding did cancel each other
a full layout recalculation was necessary. This is rather expensive when a
lot of entries are loaded.
This patch avoids the problem by adding a second div with a border that
is invisible by default. If an entry is selected, the border's color is updated.
See https://developer.mozilla.org/en-US/docs/Tools/Performance/Scenarios/Animating_CSS_properties#CSS_property_cost
for some details on the costs of a CSS property.
@tanriol
Copy link
Member

tanriol commented Apr 2, 2017

Merged the first into 2.3, the rest are left for 2.4 or later.

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.

2 participants