infinite-scroll icon indicating copy to clipboard operation
infinite-scroll copied to clipboard

prefill loads data endlessly when container has display:none

Open palisarbaro opened this issue 1 year ago • 2 comments

https://github.com/metafizzy/infinite-scroll/blob/370f7863ab61e6917a53b419649eb51254d8ffeb/js/page-load.js#L264 If container has display:none, then this.element.clientHeight is always 0. So prefill never stops.

palisarbaro avatar Dec 25 '23 09:12 palisarbaro

Is this still a problem? Maybe I can help out?

abant07 avatar Jan 09 '24 23:01 abant07

I abandoned the standard prefill option and do prefill manually. So for me the problem is solved, although it is not very convenient.

palisarbaro avatar Jan 09 '24 23:01 palisarbaro