• Plugin Contributor sburdett

    (@sburdett)


    I played with this some but didn’t have much luck. I think it would be a great feature though. This is what I tried:

    
    jQuery(document).on('scroll', function() {
    			
    	var distanceFromBottom = Math.floor(jQuery(document).height() - jQuery(document).scrollTop() - jQuery(window).height());
    	var canbeloaded = false;
    	
    	if (jQuery('.load_more').is(':visible')) {
    		canbeloaded = true;
    	}
    
        if(distanceFromBottom < 200 && canbeloaded == true) {
            // Prevent Load More from triggeirng early
            jQuery('#acs_search_results_container .load_more').trigger( 'click' );
        }
    });
    

    But I kept getting duplicate results. Thanks!!

    • This topic was modified 6 years, 2 months ago by sburdett.
    • This topic was modified 6 years, 2 months ago by sburdett.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Feature Request – Infinity Scroll’ is closed to new replies.