title: Lazy load iFrame in featherlight.js
body: <p>I was wondering if there is a way to lazy load an iFrame in featherlight.js at runtime instead of declaring the iFrame in html? That way, the url to be loaded in the page can simply specified via the data attribute or the href attribute instead of having it an iFrame declaration. For instance, instead of declaring iFrame in my html file like this:</p>
  
  <pre><code>&lt;a class="btn btn-default" href="#" data-featherlight="#fl3"&gt;iFrame&lt;/a&gt;
   ....
  &lt;iframe class="lightbox" src="www.google.com" id="fl3" style="border:none;" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" height="281" width="500"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>I would like to do something like this:</p>
  
  <pre><code>&lt;a href="#" data-featherlight="www.xyz.com"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>I do realize that if replace the URL above with something ending in .html it works fine. I was thinking of writing another content filter for 'external' sites/contant..something along the lines below:</p>
  
  <pre><code>external: { 
              regex: /[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&amp;//=]*)/,
              process: function(url) {
  
                  var self = this,
  
                  var $container = $("&lt;iframe id='featherlight-iframe'/&gt;");
                  $container.attr('src', url);
                      ........
  
  
              }
  
          },
  </code></pre>
  
  <p>Not sure if that is the right approach though. Any help would be appreciated.</p>
  
  <p>Thank you in advance.</p>