jQuery load content when scroll to bottom-100px of page, multiple events fired

后端 未结 3 2059
时光说笑
时光说笑 2020-12-02 18:00

I want an event to load more content when a user is scrolling and reaches nearly the bottom of the page, say about 100px from the bottom, the problem is that the events get

3条回答
  •  自闭症患者
    2020-12-02 18:24

    I had a same problem. To solve it, Im using underscore.js library to prevent multiple events from firing. Here is the link. http://underscorejs.org/#throttle

提交回复
热议问题