This audits checks whether or not ad scripts are being injected into the page. Other resources on the page may delay the fetching and loading of injected scripts, which will in turn delay the loading of ads. In some situations these scripts may not be fetched at all, preventing ads from being loaded all together.
Load scripts via async script tags to improve speed. The browser preload scanner can fetch script tags earlier, even if render blocking resources are blocking the script execution.
<script> var el = document.createElement('script'); el.src = 'https://securepubads.g.doubleclick.net/tag/js/gpt.js'; var node = document.getElementsByTagName('script'); node.parentNode.insertBefore(el, node); </script>
<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>
This audit operates against a whitelist of ad scripts which are known to be safe to load statically. The current list is:
|Amazon Publisher Services||
|Criteo Direct Bidder||
|Google Publisher Tag||