Closed thewebartisan7 closed 3 years ago
You can hide on [request
](https://infinite-scroll.com/events.html#request), then show on load
infScroll.on( 'request', function( path ) {
viewMoreButton.style.display = 'none';
});
infScroll.on( 'load', function( path ) {
viewMoreButton.style.display = 'block';
});
I see an example that button for load more is hidden or disabled during request and then again visible on load. I see also source code of this. But when I try to use it, then it's always visible, and not disabled or hidden. I try with option loadOnScroll and scrollThreshold. Infinitescroll works fine, the problem is that I want to hide button view more during request.
Here is part of my code, please let me know what is wrong: