diff --git a/src/manager.js b/src/manager.js index cdd28dc..55bdcc2 100644 --- a/src/manager.js +++ b/src/manager.js @@ -288,13 +288,13 @@ AdManager.prototype.onSlotRenderEnded = function (event) { if (event.isEmpty) { element.setAttribute('data-ad-load-state', 'empty'); } else { - if (this.adUnits.units[element.dataset.adUnit].onSlotRenderEnded) { - this.adUnits.units[element.dataset.adUnit].onSlotRenderEnded(event, element); - } - element.setAttribute('data-ad-load-state', 'loaded'); } + if (this.adUnits.units[element.dataset.adUnit].onSlotRenderEnded) { + this.adUnits.units[element.dataset.adUnit].onSlotRenderEnded(event, element); + } + utils.dispatchEvent(element, 'dfpSlotRenderEnded'); };