metafizzy / infinite-scroll

📜 Automatically add next page
https://infinite-scroll.com
7.41k stars 1.74k forks source link

prefill loads data endlessly when container has display:none #979

Open palisarbaro opened 9 months ago

palisarbaro commented 9 months ago

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.

abant07 commented 8 months ago

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

palisarbaro commented 8 months ago

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