title: Delay slider load until scroll
body: <p>I'm building the homepage of a wordpress site with several master sliders on it, I would like to delay the load of the sliders further down the page until the user has scrolled down to them. I’m trying to recreate the effect created on this page <a href="http://www.masterslider.com/wordpress/pro/" rel="nofollow">http://www.masterslider.com/wordpress/pro/</a></p>
  
  <p>At first I thought that all the elements on this page were created using master sliders but upon inspection only the top is a master slider and I’m assuming the rest were animated using JS. The rows further down all animate only once you’ve scrolled down to them.</p>
  
  <p>Any help with how I can recreate this effect using sliders would be appreciated.</p>
  
  <p>I'm thinking that I could wrap each call to a slider in some js/jquery which watches the scroll height of the window</p>
  
  <p>i.e. </p>
  
  <pre><code>  $(window).scroll(function() {
         if ( $(document).scrollTop() &gt; 100 ) {
  
               &lt;?php masterslider(1); ?&gt;
         }
    });
  
    $(window).scroll(function() {
         if ( $(document).scrollTop() &gt; 400 ) {
  
               &lt;?php masterslider(2); ?&gt;
          }
    });
  </code></pre>
  
  <p>Is it possible to wrap a call to a php template within a jQuery if statement as above?</p>