mirror of
https://github.com/thegeneralist01/archivr
synced 2026-07-21 18:55:36 +02:00
fix: use supported --browser-wait-until=networkidle2 for single-file-cli (reverts invalid networkAlmostIdle from previous commit)
This commit is contained in:
parent
2414acf0df
commit
c4f1c7a137
1 changed files with 2 additions and 2 deletions
|
|
@ -90,8 +90,8 @@ fn save_with(
|
||||||
.arg(&out_file)
|
.arg(&out_file)
|
||||||
.arg(format!("--browser-executable-path={chrome}"))
|
.arg(format!("--browser-executable-path={chrome}"))
|
||||||
.arg("--browser-headless")
|
.arg("--browser-headless")
|
||||||
.arg("--browser-wait-until=networkAlmostIdle")
|
.arg("--browser-wait-until=networkidle2")
|
||||||
// Extra delay after networkAlmostIdle: Cloudflare Fonts injects @font-face
|
// Extra delay after networkidle2: Cloudflare Fonts injects @font-face
|
||||||
// CSS after HTML parse, so the font hook needs more time to see it.
|
// CSS after HTML parse, so the font hook needs more time to see it.
|
||||||
.arg("--browser-wait-delay=2000")
|
.arg("--browser-wait-delay=2000")
|
||||||
// Realistic UA: some origins block headless Chrome's default UA string.
|
// Realistic UA: some origins block headless Chrome's default UA string.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue