In a Wordpress blog page I'm trying to load content with jquery .load() function:
<div id="s1"> 1 </div>
<div id="s2"> 2 </div>
<div id="s3"> 3 </div>
<script type="text/javascript">
$("#s1").load("/2013 article.item-list");
$("#s2").load("/2013/page/2/ article.item-list");
$("#s3").load("/2013/page/3/ article.item-list");
</script>
Until here, everything works fine.
But I want the content from <div id="s2"> to load when I scroll down, like a lazy load, and so on for every next <div>. Like on mashable.com
I tried with jscroll and Infinite Scroll jQuery Plugin, but I can't figure out how to make this work.
Please someone to give me a hint! Thanks in advance.