Re-enable prefetching a bit sooner.

pull/1/head
Matthew Chen 6 years ago
parent 6797d43510
commit 9c46ce8662

@ -1124,6 +1124,9 @@ typedef enum : NSUInteger {
[self autoLoadMoreIfNecessary]; [self autoLoadMoreIfNecessary];
if (!self.viewHasEverAppeared) { if (!self.viewHasEverAppeared) {
// Re-enable prefetching.
self.collectionView.prefetchingEnabled = YES;
// Now that we're using a "minimal" initial load window, // Now that we're using a "minimal" initial load window,
// try to increase the load window a moment after we've // try to increase the load window a moment after we've
// settled into the view. // settled into the view.
@ -1134,9 +1137,6 @@ typedef enum : NSUInteger {
return; return;
} }
// Re-enable prefetching.
strongSelf.collectionView.prefetchingEnabled = YES;
// Try to auto-extend the load window. // Try to auto-extend the load window.
BOOL isMainAppAndActive = CurrentAppContext().isMainAppAndActive; BOOL isMainAppAndActive = CurrentAppContext().isMainAppAndActive;
if (strongSelf.isUserScrolling || !strongSelf.isViewVisible || !isMainAppAndActive) { if (strongSelf.isUserScrolling || !strongSelf.isViewVisible || !isMainAppAndActive) {

Loading…
Cancel
Save