New issue
Advanced search Search tips

Issue 786991 link

Starred by 6 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Stripe API page has very slow scrolling in Chrome

Project Member Reported by smcgruer@chromium.org, Nov 20 2017

Issue description

Chrome Version: 64.0.3269.3 (Official Build) dev (64-bit)
OS: All low-DPI devices

What steps will reproduce the problem?
(1) Visit https://stripe.com/docs/api#errors in Chrome
(2) Scroll the page

What is the expected result?

Nice smooth scrolling.

What happens instead?

Horrible janky scrolling.



So I see two things wrong here:

1. We aren't compositing the scrolling contents, likely because we can't determine the background color (and so aren't willing to lose LCD text). Stripe has a very weird way of doing the background; they style a sibling div to the content with a black background on the RHS, and use z-index to make sure its behind their (transparent) content div.

2. Our repainting is *very* slow. Firefox Nightly also repaints this page, but does it in a fraction of the time. Attached is a trace of me scrolling the page on Chrome 64; LocalFrameView::prePaint takes 88ms!


We should first confirm why we can't composite, and see if we can fix that. Failing that we should see if we can fix the high paint times.
 
trace_stripe_api_trace.json.gz
993 KB Download
Owner: xidac...@chromium.org
Status: Assigned (was: Untriaged)
flackr@ mentions this is a great test-case for raster induced scroll. 
Minimal offline repro attached. Looks terrible, but janks the same as the live example :D
Stripe API Reference.html
2.7 MB View Download

Comment 4 by swap...@swapnil.co, Jan 28 2018

Facing exact same issue!

Comment 5 by yigu@chromium.org, Jan 31 2018

Labels: Performance Hotlist-Interop

Comment 6 by swap...@swapnil.co, Feb 27 2018

Any updates on this? nearly 4 months now!
Cc: xidac...@chromium.org
Owner: ----
Status: Available (was: Assigned)

Sign in to add a comment