diff --git a/js/lazyadslot.js b/js/lazyadslot.js index ceda865..4ab5593 100755 --- a/js/lazyadslot.js +++ b/js/lazyadslot.js @@ -252,7 +252,7 @@ var lazyLoadAdSlot = lazyLoadAdSlot || {}; adSlotRendered[0].dispatchEvent(lazyslotready); // Refresh the tag. - if (parseInt(adSlot.refreshOnLoad)) { + if (googletag.pubads().isInitialLoadDisabled()) { googletag.pubads().refresh([googletag.slots[newID]]); } this.slotId = newID; diff --git a/lazyadslot.module b/lazyadslot.module index efef7a2..d713e21 100755 --- a/lazyadslot.module +++ b/lazyadslot.module @@ -98,9 +98,6 @@ function lazyadslot_page_build() { // All Ad needed markup. $tags[$key]['renderedDfp'] = '' . PHP_EOL . $slot_display; - - // Refresh on load. - $tags[$key]['refreshOnLoad'] = variable_get('dfp_disable_init_load', 0); } // Allow modules to alter the final tags.