title: Load ads tag after delay by javascript or jquery
body: <p>I'm using 2 popup ads tag in my website, so for not disturbing visitors i like to make delay time between first pop up and second pop up by javascript or jquery.</p>
  
  <p>For example </p>
  
  <p>First tag will we execut or load after 60 seconds after full page load and second popup will be load after 20 minuts</p>
  
  <p>TAG 1 :</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      var ad_id = 111111;
      var ad_advert = 'int';
      var frequency_cap = 5;
      var frequency_delay = 5;
      var init_delay = 3;
      var popunder = true;
  &lt;/script&gt;
  &lt;script src="https://cdn.popup.pop/js/entry.js"&gt;&lt;/script&gt; 
  </code></pre>
  
  <p>TAG 2 :</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      var ad_id = 22222;
      var ad_advert = 'int';
      var frequency_cap = 5;
      var frequency_delay = 5;
      var init_delay = 3;
      var popunder = true;
  &lt;/script&gt;
  &lt;script src="https://cdn.upup.up/js/entry.js"&gt;&lt;/script&gt; 
  </code></pre>
  
  <p>Regards</p>
  
  <p>Updated : Still not working, any solution please</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      var adfly_id = 17609785;
      var adfly_advert = 'int';
      var frequency_cap = 1000;
      var frequency_delay = 0;
      var init_delay = 0;
      var popunder = true;
  &lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  function injectJs(url) {
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.async = true;
    script.onload = function(){
      // remote script has loaded
    };
    script.src = url;
    document.getElementsByTagName('head')[0].appendChild(script);
  }
  
  (function() {
   setTimeout(function(){ injectJs('https://cdn.adf.ly/js/entry.js')}, 1000 * 3); // 3 seconds or
   setTimeout(function(){ injectJs('https://cdn.adf.ly/js/entry.js')}, 1000 * 60 * 20); //20 min
   })()
  &lt;/script&gt;
  </code></pre>