Resizeobserver One Vs Multiple Performance
The ResizeObserver has an observe() method and an unobserve() method. This seems to encourage having one ResizeObserver instance and observing and unobserving different elements as
Solution 1:
Looks like reusing (one) the ResizeObserver is preferred and more preformant:
https://github.com/WICG/ResizeObserver/issues/59#issuecomment-408098151https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/z6ienONUb5A/F5-VcUZtBAAJ
Post a Comment for "Resizeobserver One Vs Multiple Performance"