- From: Jake Archibald via GitHub <sysbot+gh@w3.org>
- Date: Sun, 20 Jun 2021 17:30:12 +0000
- To: public-css-archive@w3.org
jakearchibald has just created a new issue for https://github.com/w3c/csswg-drafts: == [resize-observer] Suggest using weak references == https://drafts.csswg.org/resize-observer/ Mutation observers suggest that they have a weak reference to observed elements, so if the element is otherwise garbage collected, then the observer is also collected. This seems to work in practice. However, with similar code, `ResizeObserver` leaks memory. The same happens with `IntersectionObserver`. https://bugs.chromium.org/p/chromium/issues/detail?id=1220041 - the same issue effects Firefox and Safari. The `ResizeObserver` spec should suggest that observed elements are weakly referenced, similar to `MutationObserver`. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6397 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 21 June 2021 05:06:39 UTC