From 72b0c348a99dcec7de35e0aa5c93b847cf4b1690 Mon Sep 17 00:00:00 2001 From: syrup <1032771964@qq.com> Date: Wed, 2 Sep 2026 11:30:45 +0800 Subject: [PATCH] perf: reduce Amazon lazy-load scroll stops --- src/page-worker/web-injectors/amazon-search-page-ready.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/page-worker/web-injectors/amazon-search-page-ready.ts b/src/page-worker/web-injectors/amazon-search-page-ready.ts index 58b6a5b..72e9682 100644 --- a/src/page-worker/web-injectors/amazon-search-page-ready.ts +++ b/src/page-worker/web-injectors/amazon-search-page-ready.ts @@ -48,7 +48,7 @@ export async function waitForAmazonSearchPageReady() { // Visit the full result stream instead of jumping straight to pagination. Amazon loads // recommendation and sponsored modules when their region approaches the viewport. - for (const fraction of [0.15, 0.35, 0.55, 0.75, 0.92]) { + for (const fraction of [0.2, 0.55, 0.92]) { const documentHeight = Math.max( document.documentElement.scrollHeight, document.body?.scrollHeight || 0,