Update: Improve performance of rendering movie elements

live_tv 2.3.1
Juraj Nyíri 3 years ago
parent 35bb2785cd
commit 69def579da

@ -20950,7 +20950,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
this.renderedItems < this.data[this.config.libraryName].length && this.renderedItems < this.data[this.config.libraryName].length &&
(!this.maxRows || this.renderedRows < this.config.maxRows)) { (!this.maxRows || this.renderedRows < this.config.maxRows)) {
this.maxRenderCount = this.renderedItems + this.columnsCount * (loadAdditionalRowsCount * 2); this.maxRenderCount = this.renderedItems + this.columnsCount * (loadAdditionalRowsCount * 2);
this.renderPage(); this.renderMovieElems();
this.calculatePositions(); this.calculatePositions();
} }
}; };

@ -160,7 +160,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
(!this.maxRows || this.renderedRows < this.config.maxRows) (!this.maxRows || this.renderedRows < this.config.maxRows)
) { ) {
this.maxRenderCount = this.renderedItems + this.columnsCount * (loadAdditionalRowsCount * 2); this.maxRenderCount = this.renderedItems + this.columnsCount * (loadAdditionalRowsCount * 2);
this.renderPage(); this.renderMovieElems();
this.calculatePositions(); this.calculatePositions();
} }
}; };

Loading…
Cancel
Save