clientWidth/Height slow first time, then responsive in any elements
Reported by
miguelan...@gmail.com,
Jan 21
(2 days ago)
|
|||
Issue descriptionUserAgent: 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.
,
Yesterday
(43 hours ago)
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!
,
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.
,
Yesterday
(40 hours ago)
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 |
|||
Comment 1 by swarnasree.mukkala@chromium.org
, Jan 21 (2 days ago)