trigger infinite-scroll when there's not enough content for scroll bar on page load
infinite-scroll, jquery
Solution
One way to go for a quick check would be:
// Force 'retrieve' for next page if window is taller than document
if($(window).height() >= $(document).height()){
$wall.infinitescroll('retrieve');
};
Guess you may need to turn this into a function for multiple 'retrieve' if needed until window is not taller than the document.
Problem
I'm using the great infinite-scroll plugin- http://www.infinite-scroll.com/infinite-scroll-jquery-plugin/ But on larger screen resolutions there's not enough posts to display a scroll bar so the infinite-scroll never gets triggered. Wondered if these a way around this without having a large number of initial posts. Guessing some kind of if statement to check browser height etc. But how do i then trigger the infinite-scroll if it returns true. Any ideas Thanks Ben