metafizzy / infinite-scroll

📜 Automatically add next page
https://infinite-scroll.com
7.41k stars 1.74k forks source link

Is there a way to auto trigger #609

Closed iamloganmyers closed 7 years ago

iamloganmyers commented 9 years ago

??? without having to scroll to trigger, preferably it would be triggered on page load to load the next page

iamloganmyers commented 9 years ago

http://aimeegauthierdemo.tumblr.com/ (if you want to see a live demo)

The issue I am running into is that on a larger displays (ones that have a height greater than the content) there is no way to trigger the content to pull more... I was wondering if there was a way to auto trigger on page load? In the same sense that jscroll (https://github.com/pklauzinski/jscroll) allows

thank you for any help

desandro commented 7 years ago

Sorry to hear you're having trouble with Infinite Scroll.

Infinite Scroll v3 is out!. It's an all new re-write, so take a look at how to upgrade from v2.

Infinite Scroll has a prefill option to keep loading content until the scroll requirement is met. Otherwise, you can manually trigger loading the next page with loadNextPage method

I recommend upgrading to v3. Please open a new issue if you run into trouble with Infinite Scroll v3.