title: jQuery $.get freezing on execute
body: <p>I have the following script which performs an 'infinite-scroll' style function:</p>
  
  <pre><code>    var next_page_link = $('.wp-pagenavi a:eq(-2)').attr('href'); 
  
      $(window).scroll(function() {
          if ($(window).scrollTop()  &gt; $(document).height() / 2) {
              $.get(next_page_link, function(data){
                      if ($(data).find('.wp-pagenavi a:eq(-2)').attr('href') != next_page_link) {
                          next_page_link = $(data).find('.wp-pagenavi a:eq(-2)').attr('href');
                          var content = $(data).find('#multiple_product_top_container').html();
                          $('#multiple_product_top_container').append(content);
                      }
              });                 
          }
      });
  </code></pre>
  
  <p>The one problem I've encountered is that each time the <code>$.get</code> function runs, the browser would freeze for 2-3 seconds or more and only un-freeze when the next page has been completely loaded. </p>
  
  <p>My question is, is it possible to set the <code>$.get</code> function to run asynchronously or some other method which will eliminate the freezing?</p>
  
  <p>Btw, I know that it's possible to use a server side script but I've encountered a lot of conflicts and it's more complicated involving more parsing. </p>
  
  <p>Thanks</p>