ResizeObserver: It’s Like document.onresize for Elements
After MutationObserver, PerformanceObserver and IntersectionObserver, we have another observer for your collection! ResizeObserver
allows you to be notified when an element’s content rectangle has changed its size, and react…