Reputation: 23
I use this plugin : jScroll (http://jscroll.com). It's a jQuery plugin for infinite scrolling. After the last element it loads the next one via the pagination next.
html Example :
<div class="scroll">
<div class="items">
<div class="item">1</div>
<a class="page-link" href="page/2">
</div>
</div>
At document ready :
$('.scroll').jscroll({
pagingSelector: '.pagination',
nextSelector: '.page-link:last',
contentSelector : '.items',
loadingHtml: 'loading...'
});
I use this similar code on 2 differents websites. One of them works perfectly, the other one gives a blank page.
I mean, when i scroll to the bottom, i see "loading..." and it quicly disapears. The next page "/page/2" works perfectly into the browser when i manualy type the url
It seems to be a cache problem but i don't know how i can resolve it.
it will be great if you have any ideas
Thanks
Upvotes: 0
Views: 131