New issue
Advanced search Search tips

Issue 923763 link

Starred by 1 user

Issue metadata

Status: Unconfirmed
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

clientWidth/Height slow first time, then responsive in any elements

Reported by miguelan...@gmail.com, Jan 21 (2 days ago)

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

Steps to reproduce the problem:
1. Check the clientWidth/Height property in any element, you will experience a 20-40ms wait time.

2. Check the clientWidth/Height property of that element or any other, you will experience a 0-1ms wait time.

What is the expected behavior?
Always a similar amount of time, or at least less than frame (16ms).

What went wrong?
Slowdown when checking the property.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 71.0.3578.98  Channel: stable
OS Version: Ubuntu 18.10
Flash Version: None

Firefox doesn't have this issue, it's normally 0-1ms from the first check of the property.
 

Comment 1 by swarnasree.mukkala@chromium.org, Jan 21 (2 days ago)

Labels: Needs-Triage-M71

Comment 2 by viswa.karala@chromium.org, Yesterday (43 hours ago)

Cc: viswa.karala@chromium.org
Labels: Triaged-ET Needs-Feedback
Thanks for filing the issue!

@Reporter: Could you please provide sample Test File/URL that reproduces the issue which help in further triaging the issue in better way.

Thanks!

Comment 3 by miguelan...@gmail.com, Yesterday (40 hours ago)

Sorry, I can't provide either but I continued researching the issue and discovered it was caused by a "Forced reflow while executing JavaScript".

It only occurs when the document has a large amount of DOM nodes which are also style in some way. What I find peculiar it's only the first time, subsequent checks to the property on any element doesn't cause the slowdown. Regardless if it's within the same frame, some time after, the content changes or the styles changes. Additionally after a restart the slowdowns decreased to 10-30ms.
Project Member

Comment 4 by sheriffbot@chromium.org, Yesterday (40 hours ago)

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment