You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
constgrid=document.querySelector('.grid')constviewMoreButton=document.querySelector('.view-more-button')viewMoreButton.style.display='block'constinfScroll=newInfiniteScroll(grid,{path: 'a[rel="next"]',append: '.item',button: viewMoreButton.querySelector('.js-load-more'),status: '.page-load-status',//loadOnScroll: false, // Same not working alsoscrollThreshold: false,// Try also this but same})infScroll.on('load',function(response){// I do something here with response...})
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: