title: Omnifaces deferred script with CDNResourceHandler
body: <p>For the moment i load googleAds scripts from Omnifaces CDNResourceHandler wich generates </p>
  
  <pre><code>&lt;script type="text/javascript" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Now if i try to use Omnifaces deferredScript with CDN resource handler to load the same library then the browser displays message </p>
  
  <blockquote>
    <p>Access to Script at
    '<a href="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" rel="nofollow noreferrer">https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js</a>' from
    origin '<a href="https://xxxx" rel="nofollow noreferrer">https://xxxx</a>' has been blocked by CORS policy: No
    'Access-Control-Allow-Origin' header is present on the requested
    resource.</p>
  </blockquote>
  
  <p>Generated html</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;OmniFaces.DeferredScript.add('https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js');&lt;/script&gt;
  </code></pre>
  
  <p>Could you explain how to make it work?
  It's possible to combine deferredScript and CDNResourceHandler utilities ut it seems it generates CORS problems. How to solve it?</p>