mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
A common pattern is to put something on the DOM, measure it, then update the DOM again based on that measurement. This change ensures that any updates requested as a result of reading from the DOM get scheduled for the end of the current frame. If you want to read *again* after these follow-on updates, you will need to wait for the next frame. But at least this way we ensure instant feedback with minimal thrashing (1 reflow) when we have no choice but to read the DOM before updating. /cc @benogle
7.3 KiB
7.3 KiB