A polyfill for Resize Observer API.
Implements event based tracking of changes in the dimensions of elements.
Uses MutationsObserver and falls back to an infinite dirty checking cycle if the first one is not supported.
Handles long running CSS transitions/animations, attributes and nodes mutations along with changes made by :hover pseudo-class (optional).
Compliant with the spec.
Doesn't contain any publicly available methods except for those described in the spec.
1 2 3 4 5
P.S: Checkout the Live demo.