mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 23:43:43 +00:00
The .height() and .width() functions are actually pretty expensive for the number of times we call them. The viewport height and width don't change often, though, so we can just cache them and recalculate them on window resize. (imported from commit 129fb8c058144125e2974f6b7967cd9f1a5c9ead)
39 KiB
39 KiB