`offsetWidth` and `offsetHeight` both cause the browser to recalculate the layout, leading to performance problems. Would be great to see these functions replaced by something more performant, e.g. the ResizeObserver API.
offsetWidthandoffsetHeightboth cause the browser to recalculate the layout, leading to performance problems.Would be great to see these functions replaced by something more performant, e.g. the ResizeObserver API.