pklauzinski / jscroll

An infinite scrolling plugin for jQuery.
http://jscroll.com/
1.11k stars 561 forks source link

jscroll.js - Multiple Links lazy-loading #139

Open galaxystef opened 7 years ago

galaxystef commented 7 years ago

A little tweak that makes jscroll.js lazy load a list of many elements already inside the targeted parent element
E.G. (html code) ▼

<div class="scroll">
    <h3>Page 1</h3>
    <p>Content here...</p>
    <a href="example-page2.html">next page</a>
    <a href="example-page3.html">next page</a>
    <a href="example-page4.html">next page</a>
    <a href="example-page5.html">next page</a>
    <a href="example-page6.html">next page</a>
    etc.....
</div>

<script>$('.scroll').jscroll();</script>