Integration of infinite scroll from Paul Irish for Plone https://github.com/paulirish/infinite-scroll
paulirish's infinite-scroll jQuery plugin parses the "next" button only on initialization and calculates the urls to retrieve the contents by incrementing an page counter. Plone uses an item-offset instead of page numbers. For Plone a more generic approach would be better: Parsing the "next" buttons url on each ajax request.
The batch size is fixed to 10 items. You may have to change the init script and adapt it to your needs. TODO: automatically get the batch size or always use the next button's href to get the url of the next page instead of relying on a page counter.
Johannes Raggam, Peter Holzer, BlueDynamics Alliance <email@example.com>