A new Public Beta release of Infinite Ajax Scroll 3 is released. In this post we go over some of the new features.
Trigger support
With trigger support you show a button which has to be clicked before the next pages loads. You can use this to make the footer reachable or to ease the load on the server.
The trigger support was build with maximum flexibility in mind. Read to documentation about trigger option for all possibilities.
This feature also comes with a new example.
Negative margin
With negativeMargin you can tweak when Infinite Ajax Scroll should start loading the next page. Normally this happens when the user scrolls to the bottom of the last item, but by applying a negative margin you can have it load sooner.
For example: with a negativeMargin of 100
, the next page would start loading 100px
before the user reaches the bottom of the last item.
Other fixes and improvements
I also fixed a few issues with multiple pagination elements and I added a console warning when a next element is not found. The latter should improve Developer Experience a bit.
Availability
Infinite Ajax Scroll v3.0.0-beta.6 is now available on Github and NPM, as well as various CDN providers.