mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
Using the offsetHeight getter is ~2.5x faster than getBoundingClientRect() on what can be an expensive operation to do in the hundreds of times. Note: Tim thinks that this may have been different a few years ago, since we tested fairly carefully before settling on getBoundingClientRect, but benchmarks pretty clearly show offsetHeight is faster today, so we should use that.
5.6 KiB
5.6 KiB