title: jquery adding content and scrolling top
body: <p>I need to add content dynamically so once user is scrolling down it's all good,because i detect once user near bottom of the page ant than i add content so user even won't notice it , but once user is scrolling up if I add content all other page jumps dawn and user can clearly see that something is wrong.</p>
  
  <p>my code:</p>
  
  <pre><code>$(window).scroll(function() {
      if($(window).scrollTop() + $(window).height() &gt; $(document).height()-100) {
          $('#myparrentdiv').append(huge_content);
      }
      if($(window).scrollTop()&lt;100) { 
          $('#myparrentdiv').prepend(huge_content); //here we get jumping content
      }
  });
  </code></pre>