From dcc265458cef022a6b03bcaa47686e08869bcb02 Mon Sep 17 00:00:00 2001 From: Aravind Karnam Date: Mon, 14 Apr 2025 12:39:05 +0530 Subject: [PATCH] fix: Add a nominal wait time for remove overlay elements since it's already controllable through delay_before_return_html --- crawl4ai/js_snippet/remove_overlay_elements.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawl4ai/js_snippet/remove_overlay_elements.js b/crawl4ai/js_snippet/remove_overlay_elements.js index 9d93b4ac..a50d9427 100644 --- a/crawl4ai/js_snippet/remove_overlay_elements.js +++ b/crawl4ai/js_snippet/remove_overlay_elements.js @@ -116,5 +116,5 @@ async () => { // Wait a bit for any animations to complete document.body.scrollIntoView(false); - await new Promise((resolve) => setTimeout(resolve, 250)); + await new Promise((resolve) => setTimeout(resolve, 50)); };