loadNext() {
    const start = this.visibleEnd;
    const end = this.visibleEnd = this.sanitizeIndex(this.visibleEnd + this.constructor.loadCount);

    // Unload the posts which are two pages back from the page we're currently
    // loading.
    const twoPagesAway = start - this.constructor.loadCount * 2;
    if (twoPagesAway > this.visibleStart && twoPagesAway >= 0) {
      this.visibleStart = twoPagesAway + this.constructor.loadCount + 1;

      if (this.loadPageTimeouts[twoPagesAway]) {
        clearTimeout(this.loadPageTimeouts[twoPagesAway]);
        this.loadPageTimeouts[twoPagesAway] = null;
        this.pagesLoading--;
      }
    }

    this.loadPage(start, end);
  }
/**
   * Load the next page of posts.
   */
Load the next page of posts.
Load the next page of posts .
loadNext() {
    const start = this.visibleEnd;
    const end = this.visibleEnd = this.sanitizeIndex(this.visibleEnd + this.constructor.loadCount);
    const twoPagesAway = start - this.constructor.loadCount * 2;
    if (twoPagesAway > this.visibleStart && twoPagesAway >= 0) {
      this.visibleStart = twoPagesAway + this.constructor.loadCount + 1;
      if (this.loadPageTimeouts[twoPagesAway]) {
        clearTimeout(this.loadPageTimeouts[twoPagesAway]);
        this.loadPageTimeouts[twoPagesAway] = null;
        this.pagesLoading--;
      }
    }
    this.loadPage(start, end);
  }
loadNext ( ) { const start = this . visibleEnd ; const end = this . visibleEnd = this . sanitizeIndex ( this . visibleEnd + this . constructor . loadCount ) ; const twoPagesAway = start - this . constructor . loadCount * 2 ; if ( twoPagesAway > this . visibleStart && twoPagesAway >= 0 ) { this . visibleStart = twoPagesAway + this . constructor . loadCount + 1 ; if ( this . loadPageTimeouts [ twoPagesAway ] ) { clearTimeout ( this . loadPageTimeouts [ twoPagesAway ] ) ; this . loadPageTimeouts [ twoPagesAway ] = null ; this . pagesLoading -- ; } } this . loadPage ( start , end ) ; }
Load the next page of posts.
Load the next page of posts .
// Unload the posts which are two pages back from the page we're currently // loading.