Skip to content

Can't have 2 jscroll instances on the same page #78

@Marvin256

Description

@Marvin256

Hello

I'm trying to make jscroll to work with 2 instances in the same time: I want to load next posts in the middle of the page and next instagram posts at the bottom of the page.

I can make the first one to work but not the second one and vice versa.

Here's how I do it:

$('#lazy-posts').jscroll(
    {
        debug: true,
        loadingHtml:'',
        padding: 0,
        nextSelector: 'a.jscroll-next-posts:last',
        contentSelector: ''
    }
);
// lazy loading instagram
$('#lazy-instagram').jscroll(
    {
        loadingHtml:'',
        padding: 0,
        nextSelector: 'a.jscroll-next-instagram:last',
        contentSelector: ''
    }
);

Is it possible to do this?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions