loading-attribute-polyfill
loading-attribute-polyfill copied to clipboard
DOM changes tracking with MutationObserver
@mfranzke I've added DOM changes tracking with MutationObserver, which would recall 'prepareElements' method
Thanks a lot for your support ! I couldn‘t check on this in detail previous to Friday.
I'm mainly thinking about whether it might be better to provide an API to trigger a reinit of the functionality and offering the MutationObserver sample code, so that every site owner could implement this MutationObserver only if needed in their application and those who don't wouldn't have this Observer running at all.
What's your opinion on this?
@OgNellis - sadly it took me a while to provide a solution. Do you have the chance to review my implementation provided with #96 ?
@OgNellis I've released a beta version of this polyfill: loading-attribute-polyfill@latest that provides the prepareElements as a public method to be called from outside, like within a MutationObserver. Do you still have the chance to recheck this aspect? Again, sorry for the long delay.