The call to reinitialize() in IAS.prototype.extension() causes the plugin to load nextUrl multiple times if currentScrollOffset >= scrollThreshold, once per each extension. I've commented out the call to reinitialize() and my extensions (noneleft and spinner) still seem to be working properly; is this call necessary after each extension is loaded?
If it is, the initialize() method will need to ensure that it isn't repeatedly loading the same URL.
Ah, that's not correct, I will look in to it soon.
Just came upon this issue myself!
I'm getting similar kind of issue.
The infinite scroll AJAX call, fires for more than one time like:
and I guess that is why I'm getting same records twice,thrice etc on same page.
After a lot of testing with various cases, I found it is something based on page "height-width"
Selectors are also correct.
Please please please help me.
Hi, can you please tell me what you have commented? Is that worked? I'm getting exactly same issue.
@Parthvora I followed @fflewddur's suggestion and it worked for me too. Just comment out this.reinitialize() in IAS.prototype.extension() (line 560).
Yup, its worked for me too.. thanks a lot @lukeelmers and @fflewddur
I released a fix. You can download the latest release from http://infiniteajaxscroll.com/download.html.
Thanks @fieg -- just tested this, and everything functions as expected. Really appreciate the work you're doing here!