paulirish/infinite-scroll — Issue #115: Infinite scroll and the callback
Author: richgcook
Created: 2012-01-08 16:41:19+00:00
State: open

I'm using the Portfolio Slideshow Pro (http://madebyraygun.com/wordpress/plugins/portfolio-slideshow-pro/) for Wordpress combined with Infinite Scroll.

This is what my infinite scroll JS looks like:

```

```

The slideshow plugin is a whole $(window).load so I took everything inside that, and turned it into a function.

```$(window).load(function() { portfolioSlideshow() });```

But now I need to callback that function each time the new set of posts load as although the infinitescroll is working, the JS on the slideshow aren't.

Can someone please help me add the function I created to the callback of infinitescroll so it reloads the slideshow function each time new data is loaded in?

I've had such a problem trying to do this and the documentation seems dated.

-R