title: Lazy loading not working in mobile device chrome and safari browser?
body: <p>My code here: </p>
  
  <pre><code>`&lt;script type="text/javascript" language="javascript"&gt;
     $(window).scroll(function ()
     {
        if ((($(window).scrollTop() + $(window).height())) &gt;= $(document).height())
        {
           setTimeout(function ()
           {
              scrollMore();
           }, 500);
        }
     });
     function scrollMore()
     {
        if ($(window).scrollTop() == (($(document).height()) - ($(window).height())))
        {
           var records =&lt;?php echo $total_record; ?&gt;;
           var offset = -Infinity;
           $(".limit").each(function ()
           {
              offset = Math.max(offset, parseFloat(this.value));
           });
           var query = $("#query").val();
           if (records &gt;= offset)
           {
              $(window).unbind("scroll");
              $("#loading").show();
              setTimeout(function ()
              {
                 loadMoreData(offset, query);
              }, 500);
              scrollTop: 0;
           }
        }
     }
     function loadMoreData(offset, query)
     {
        $("#loading").css('display', 'block');
        $.ajax({
           type: 'POST',
           async: false,
           url: 'get_data.php',
           data: {limit: offset, query: query},
           success: function (data)
           {
              $("#loading").hide();
              $('#posts').append(data);
           },
           error: function (data)
           {
              alert("ajax error occured" + data);
           }
        }).done(function ()
        {
           $(window).bind("scroll", function ()
           {
              scrollMore();
           });
        });
     }
  &lt;/script&gt;
  </code></pre>
  
  <p>this is perfect working in window and ubuntu in all responsive size desktop,tab,mobile(responsive width) but not working in mobile device chrome browser.</p>
  
  <p>In mobile device mozila firefox browser working good.</p>