Verbessere die Logik zum Laden von Anzeigen: Sofortige Anzeige bei Vorliegen von Zustimmung, Auto-Load oder Debug-Option

This commit is contained in:
Torsten Schulz (local)
2026-05-18 15:51:36 +02:00
parent fdeecec63e
commit c8059f94f8

View File

@@ -303,8 +303,8 @@ async function loadAdIfNeeded() {
onMounted(async () => {
if (!isEnabled.value) return;
// If consent present, load immediately (but still lazy after nextTick to avoid blocking)
if (hasConsent()) {
// If consent present, autoLoad, or debugForceLoad => load immediately
if (hasConsent() || autoLoad || debugForceLoad) {
await nextTick();
await loadAdIfNeeded();
return;