Thus we won't clutter the code with unrelated events and can easily switch to a ResizeObserver when it is implemented by the browsers