Crawl page is very slow. #2119
Replies: 2 comments 1 reply
|
Hi @github0null thanks for the detailed report, your deployment is fine. Your compose file, hardware, and network are all fine. This is a bug in crawl4ai itself, and we were able to reproduce it exactly (same ~31s timing, same warning) outside Docker. The culprit is this line in your crawler config:
When that option is on, crawl4ai injects a small script into the page to close popups/cookie banners. That script finishes by waiting 50ms via However,
The CSP sandbox directive makes Chromium treat the page as fully sandboxed with scripting disabled — so
Workaround (immediate)Remove On our sideThis is a genuine bug: An innocuous, documented option shouldn't silently cost a flat 30s per page. We'll work on a fix for this soon. Thanks again for the report! |
|
Hi @github0null , quick update: the fix for this is now merged into the Short version of what changed: the injected overlay/consent-removal scripts had Until the release is out, the workaround still stands: leave Thanks again for the detailed report, it made this easy to track down. |

Hi @github0null thanks for the detailed report, your deployment is fine. Your compose file, hardware, and network are all fine. This is a bug in crawl4ai itself, and we were able to reproduce it exactly (same ~31s timing, same warning) outside Docker.
The culprit is this line in your crawler config:
"remove_overlay_elements": TrueWhen that option is on, crawl4ai injects a small script into the page to close popups/cookie banners. That script finishes by waiting 50ms via
setTimeout.However,
raw.githubusercontent.comserves files with this header:Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'; sandboxThe CSP sandbox directive makes Chromium treat the page as full…