I'd like to know whether they're really required.

Accessing the clientHeight here will likely trigger an uninterruptible reflow, and we don't want this at all. Can you try to think to a CSS-only solution? If it's not possible what in the design could we change to make it possible?