[英]Preload google DFP iframes in case of infinite content
如果內容無限,是否可以預加載google DFP iframe?
我已從https://support.google.com/dfp_premium/answer/4578089?hl=zh_CN頁面中的示例進行了跟蹤
我希望看不到空的地方和廣告加載之前的延遲。
您可以執行以下操作:
googletag.pubads().disableInitialLoad(); //preload the DFP iframes
googletag.pubads().collapseEmptyDivs(true);
googletag.pubads().refresh([slot1]); //You need to refresh the slots to display
希望對您有所幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.