Optimized cross-browser resize listener for elements.
Polyfills the ResizeObserver API.
detect container resizing