Skip to content

Commit cc77e1d

Browse files
committed
🛠 checkLastPage on load
ref #690 do not tie it to append
1 parent b7181fe commit cc77e1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎js/page-load.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ InfiniteScroll.defaults.responseType = 'document';
3737
InfiniteScroll.create.pageLoad = function() {
3838
this.canLoad = true;
3939
this.on( 'scrollThreshold', this.onScrollThresholdLoad );
40-
this.on( 'append', this.checkLastPage );
40+
this.on( 'load', this.checkLastPage );
4141
if ( this.options.outlayer ) {
4242
this.on( 'append', this.onAppendOutlayer );
4343
}

0 commit comments

Comments
 (0)