3 ms·
"Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout." > What forces layout/reflow. The comprehensive list. > Al
by lioeters 3y ago
"Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout."
> What forces layout/reflow. The comprehensive list.
> All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
https://gist.github.com/paulirish/5d52fb081b3570c81e3a https://gist.github.com/paulirish/5d52fb081b3570c81e3a