Skip to content

Improve scroll performance - #202

Open
MichaelEischer wants to merge 4 commits into
brief-rss:masterfrom
MichaelEischer:scroll-performance
Open

Improve scroll performance#202
MichaelEischer wants to merge 4 commits into
brief-rss:masterfrom
MichaelEischer:scroll-performance

Conversation

@MichaelEischer

Copy link
Copy Markdown
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

tanriol commented Apr 2, 2017

Copy link
Copy Markdown
Member

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