JQuery Detect Scroll at Bottom

后端 未结 10 737
南方客
南方客 2021-01-30 09:58

I wish to achieve content load when the user scrolls to the bottom of the page.

I am having a problem. It works fine on desktop browsers but not on mobile. I have imple

10条回答
  •  抹茶落季
    2021-01-30 10:17

    For anyone who looks here later, I solved this by adding height=device-height to the meta viewport tag:

    
    

    You can then carry on using $(document).scroll(function(){});

    This worked with iOS 5

提交回复
热议问题