metafizzy / metafizzy/infinite-scroll

How to get instance of already initialized plugin?

Open
#987 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
7.5k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

1) How to get instance, not REinitialize!
this variant not working
$('.shop-container .products').data('infiniteScroll');

2) How to check is last page inside document.addEventListener('scroll', function() {}); ?

Contributor guide

Open the contributing guide

Research direction

Start with the plugin's existing API documentation and the initialization path related to $('.shop-container .products').data('infiniteScroll'). Check how an initialized instance is exposed and how end-of-content state is represented during the scroll listener flow. Done means the supported instance-access and last-page check are clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jquery
Domain
frontend
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.