diff --git a/script.js b/script.js index f497671..5a75127 100644 --- a/script.js +++ b/script.js @@ -1415,7 +1415,10 @@ function updateTexts() { document.querySelectorAll('[data-i18n]').forEach(el => { const key = el.dataset.i18n; if (t[key]) { - el.textContent = t[key]; + // Only update if text is different to avoid unnecessary DOM changes + if (el.textContent !== t[key]) { + el.textContent = t[key]; + } } });