Skip to content Skip to sidebar Skip to footer

Jquery Infinite Scroll Plugin - Loading And Memory Issues

I am using infinate scroll plugin (by Paul Irish). I want to use custom functions when the next page is loading and when the maxPage is reached. I have tried the below based on

Solution 1:

First, ensure it works will the minimum options (plus console debug messages):

$container.infinitescroll({
    navSelector: "div.paginate",
    nextSelector: "div.paginate a",
    itemSelector: "div.element",
    debug: true
});

If it does, add in options until it breaks.

I recommend debugging the start/finished functions in the console, like this:

loading: {
        start: function(){
              console.log('started');
        },
        finished: function(){
              console.log('finsihed loading');
        }
    }

Consider adding the errorCallback option to debug ajax issues.

Post a Comment for "Jquery Infinite Scroll Plugin - Loading And Memory Issues"