title: Load iframe after onload
body: <p>I have got a blog and I would like youtube and vimeo videos to load after the page is loaded, because as of now these videos block the loading of the rest of the content. </p>
  
  <p>This is the code I generate for each post: </p>
  
  <pre><code>public function generateVimeoVideo($class){
  
      return "&lt;iframe class='".$class."' src='//player.vimeo.com/video/".$this-&gt;vimeo_video_id."' frameborder='0' webkitAllowFullScreen mozallowfullscreen allowFullScreen&gt;&lt;/iframe&gt;";
  
  
  }
  </code></pre>
  
  <p>How do I load this after onload ? </p>