title: How do I prevent loading of an external resource while preventing the “Failed to execute 'write' on 'Document'” error?
body: <p>I want to defer loading of external resources until my web page is loaded, so I tried the good ol’ “defer” operator</p>
  
  <pre><code>&lt;script src="//assets.adobedtm.com/aaabbbcccddd/satelliteLib-680156eb19277c7ad2206ff3fac1c250f6d6214c.js" defer&gt;&lt;/script&gt;
  </code></pre>
  
  <p>The reason I do this is because I don’t want rendering of my page to be slow or blocked if the external resource doesn’t exist or there are problems contacting that web site.  This is an external file from Adobe that I don’t control.  Unfortunately, adding this directive on Chrome gives the following error in the console …</p>
  
  <pre><code>Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.
  </code></pre>
  
  <p>Does anyone know a way that I can load this file at the end without blocking rendering of my page if the resource doesn’t load AND prevent the above error?</p>