From 8af7840f5cbf6c9c52392f8810052a7f036eac24 Mon Sep 17 00:00:00 2001 From: XShine555 Date: Mon, 20 Jul 2026 17:38:37 +0200 Subject: [PATCH] perf(web-player): cut down the searches the explore page fires Typing in the search box navigated on every pause, so single letters and round-trips back to the same term each triggered a full YouTube search and a new grid of covers. The debounce is longer, a term identical to the current one no longer navigates, YouTube is only queried past a minimum length, and the infinite scroll waits until the sentinel is closer before pulling a page. --- .../src/lib/components/ui/InfiniteScroll.svelte | 3 ++- web-player/src/lib/config.ts | 3 +++ web-player/src/routes/(app)/explore/+page.server.ts | 13 +++++++++---- web-player/src/routes/(app)/explore/+page.svelte | 8 +++++--- 4 files changed, 19 insertions(+), 8 deletions(-) diff --git a/web-player/src/lib/components/ui/InfiniteScroll.svelte b/web-player/src/lib/components/ui/InfiniteScroll.svelte index 8dc8e09..3aed31c 100644 --- a/web-player/src/lib/components/ui/InfiniteScroll.svelte +++ b/web-player/src/lib/components/ui/InfiniteScroll.svelte @@ -1,5 +1,6 @@