we have created a WordPress Archive with infinity scrolling and the following configuration
- Pagination enabled with manual transition and AJAX
- Transition effect: infinity scrolling
- Tolerance: -500 (To add LoadMore Button)
- and the following js code to prevent auto infinity scrolling
Everything works as expected until we checked the "Pre-load the next and previous pages - avoids loading delays when users move between pages"
Now when we are the bottom of the page and we clicked the LoadMore button, the page loads the next 10 items but the screen stays at the bottom and you can not even notice the new items. The correct action is to append the list and the viewport from the button where was before after the loadmore should show new items
I can't easily explain what happens but think that you hit the button, new posts are loaded but you are again in the same position at the footer with the new items listed above.
Views doesn't provide a Load More functionality, we have an internal feature request ticket about this and I've added this thread to it.
If you are implementing a custom solution then it would be expected that some of the settings may not work as expected.
You don't describe how your Load More button works. If you can tell me that I may be able to offer some advice. And do you have a link where I can see your solution in action?
we can provide you a URL to our testing environment if you want to investigate. We have disabled all plugins and we use the default WordPress theme. After more testing, we have concluded that the issue exists also in the infinity scrolling without the LoadMore button. If the end of the posts loop from the WordPress Archive is close enough to the bottom of the page then the next items loaded correctly but if the end of the loop post is let's say in the middle of the page the next items are loaded above and the infinity triggered again and again
Yes, please, can I get access to your site to see the problem for myself?
I will mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site.
Can you confirm the url of where I can see the problem.
OK, thank you. I see the issue, and I've reproduced the problem on my own test site.
The results are inserted in the right place (after the existing results) but the scroll position is wrong, you end up looking at the last of the new results instead of the first one (and this can trigger continued refreshes).
I've escalated that so that it can be shared with the developers, and I'll let you know when I have some feedback to share.
We are well into the current dev cycle which is devoted to new and improving current features, and the next cycle will focus on a backlog of usability issues and bugfixes, and the ticket for this issue is assigned to that board.
I don't have an ETA but I expect it will be a few weeks.