Janky keyboard scrolling on articles at The Athletic
Categories
(Core :: CSS Parsing and Computation, enhancement, P3)
Tracking
()
People
(Reporter: RyanVM, Unassigned)
References
()
Details
(Keywords: perf)
I've noticed that articles on The Athletic scroll smoothly with the mouse wheel, but are very janky when using the keyboard.
Comment 1•6 years ago
|
||
Ryan sent me his credentials and I could repro the issue.
The problem is that the page has top-level key event listeners so we can't do APZ keyboard scrolling. And then on top of that every scroll event that gets fired triggers some really long DOM operations so that bogs down the main thread. Here's a profile of that: http://bit.ly/2TDpOll
I don't think we can do much about the APZ keyboard scrolling here on our end, but maybe we can speed up some of the DOM/JS stuff that's running.
Comment 2•6 years ago
|
||
I'm going to move this over to CSS since it seems like the lion's share of the time spent by the content main thread is reading computed styles (boxSizing in particular).
Comment 3•6 years ago
|
||
This is probably the kind of issue that bug 1381071 and co would help with.
Updated•6 years ago
|
Reporter | ||
Comment 4•2 years ago
|
||
I went back to see how things are now that bug 1381071 has landed, but I think they've changed something on their site nowadays as scrolling with the keyboard feels pretty smooth even with ESR91.
Description
•