News for hackers. Stuff that matters.
Re:Show HN: Looptap – A minimal game to waste your time by afiori on Friday January 14, 2022 @11:30AM (#29936542)
I believe that getBoundingClientRect does not force a layout calculation by itself, it only forces queued recalculations to happen synchronously.

So calling it 100 times in a loop should be fast, but calling it 100 times in a loot that also updates the DOM should be cripplingly slow.

There are no comments on this comment yet.