Mickël DI CURZIO

Results 3 comments of Mickël DI CURZIO

update : ``` var mutationObserver = new MutationObserver(function (mutations) { mutations.forEach(function (mutation) { if (mutation.addedNodes[0] && (mutation.addedNodes[0].localName === "script" || mutation.addedNodes[0].localName === "iframe")) { // console.log(mutation.addedNodes[0].dataset.name); let categoryName = mutation.addedNodes[0].dataset.name;...

ping @amenk We have put this script in order to listen dom element injected by GTM. If a script contain an data-name attribute started by "lazy-", we will inject it...

well, I will make an Update ( for everyone who have the same issues ) Observers work but it can appear to be a bas solution. In fact, it can...