Use MutationObserver
to automatically find new images injected into the page
#24
Labels
enhancement
New feature or request
Could possibly replace, or at least assist (by automating) the requirement to
document.addEventListener('page:updated', () => lazyloading.reset());
when injecting new content.MutationObserver could be used to add entries to the
IntersectionObserver
when injected into the page and also to remove entries from theIntersectionObserver
if content is removed from the page.A17 Behaviors uses one - I think the implementation will be similar here.
The text was updated successfully, but these errors were encountered: