perf: reduce Amazon lazy-load scroll stops

This commit is contained in:
syrup 2026-09-02 11:30:45 +08:00
parent 832ae83443
commit 72b0c348a9

View File

@ -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,