perf: optimize innerHTML with insertAdjacentHTML

Replaced an inefficient `.innerHTML +=` operation with `.insertAdjacentHTML('beforeend', ...)` in `src/ui_helpers.js`.

Co-authored-by: TauNeutrino <1600410+TauNeutrino@users.noreply.github.com>
This commit is contained in:
google-labs-jules[bot]
2026-03-10 13:09:35 +00:00
parent dd1ab415d2
commit b75d5f88a5
2 changed files with 14 additions and 43 deletions

View File

@@ -73,7 +73,7 @@ export function updateNextWeekBadge() {
}
if (highlightCount > 0) {
badge.innerHTML += `<span class="highlight-count" title="${highlightCount} Highlight Menüs">(${highlightCount})</span>`;
badge.insertAdjacentHTML('beforeend', `<span class="highlight-count" title="${highlightCount} Highlight Menüs">(${highlightCount})</span>`);
badge.title += `${highlightCount} Highlights gefunden`;
badge.classList.add('has-highlights');
}