diff --git a/application/source/dom/customelement.mjs b/application/source/dom/customelement.mjs index 858cfd824efa4ab68517e3a059116b00abfb7a1f..e57ff7e43ae2eb98edf413f156024db65eb7bc3b 100644 --- a/application/source/dom/customelement.mjs +++ b/application/source/dom/customelement.mjs @@ -614,6 +614,10 @@ function initAttributeChangeMutationObserver() { if (self[attributeObserverSymbol] === undefined) { self[attributeObserverSymbol] = {}; } + + if(Object.keys(self[attributeObserverSymbol]).length === 0) { + return; + } new MutationObserver(function (mutations) { for (const mutation of mutations) {