From bdae52fad7c1e249649ae76dfe4792086567782f Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Thu, 22 May 2025 21:38:30 +0100 Subject: [PATCH] accounts: add credit for infinite scroll --- ts/modules/list.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ts/modules/list.ts b/ts/modules/list.ts index bac8acc..cf4a507 100644 --- a/ts/modules/list.ts +++ b/ts/modules/list.ts @@ -98,6 +98,9 @@ export abstract class PaginatedList { protected _container: HTMLElement; // List of visible IDs (i.e. those set with setVisibility). protected _visible: string[]; + // Infinite-scroll related data. + // Implementation partially based on this blog post, thank you Miina Lervik: + // https://www.bekk.christmas/post/2021/02/how-to-lazy-render-large-data-tables-to-up-performance protected _scroll = { rowHeight: 0, screenHeight: 0,