• Resolved tgaff2x

    (@tgaff2x)


    I am using the “infinite scroll” approach with about 25k documents, but am finding that as I slowly scroll down, it makes several ajax calls well before I get to the bottom of the list. I can stay at the top of the page, just scrolling up/down a tiny bit and it continues to make a new call on each scroll change.

    I checked and in jquery.infinitescroll.js around L74 the test for scrollpositionnew >= position seems to be checking distance from the top and is always true.

    The example on https://www.gotosolr.com/en/search-wpsolr/?search=*
    exhibits the same behavior, just scroll a tiny bit down, then back up, then down, then up – and on each, it’ll show Loading.

    note: i realize what I’m describing with up/down is not a normal behavior, but the main point is that as you scroll through a somewhat long list it pre-loads way too many documents as it’s kicking off the load more prematurely.

    https://www.ads-software.com/plugins/wpsolr-search-engine/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘infinite scroll’ is closed to new replies.