lightbulb_outline Blog Post: Fast ads matter (

Load ad scripts statically


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.

  var el = document.createElement('script');
  el.src = '';
  var node = document.getElementsByTagName('script')[0];
  node.parentNode.insertBefore(el, node);
<script async src=""></script>

More information

This audit operates against a whitelist of ad scripts which are known to be safe to load statically. The current list is:

Library Script(s)
Amazon Publisher Services
Criteo Direct Bidder*/publishertag.js
Google Publisher Tag

Index Exchange*.js

Intervening against document.write()
Script-injected "async scripts" considered harmful