I need to get the height of a div
and get notified when its height changes according to data.
I am using getBoundingClientRect()
to get the height currently, but I don't get notified of any further changes.
I also tried DOMAttrModified
and MutationObserver
to detect changes in the data, but both of them are not universally supported in all browsers.
What's the best way to get notifications about changes to an element's height?