mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #213] Config: Add a DELAY_AFTER_LOAD option to delay snapshot further after onload event #1655
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#1655
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fr0der1c on GitHub (Apr 10, 2019).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/213
Type
What is the problem that your feature request solves
The PDF and screenshot are generated too early. As you can see. I can only see a meaningless loading page in PDF and screenshot instead of actual content.
How badly do you want this new feature?
@pirate commented on GitHub (Apr 10, 2019):
They're generated when the page
onloadevent fires. If you're seeing pages show up empty in screenshot, it means those sites are doing some weird post-load AJAX to load their content (which is unfortunately more and more common lately).We can try adding a config var like
DELAY_AFTER_LOAD=5do add a 5s delay after page onload, but I can't promise it'll be finished within the next month.@Joonas12334 commented on GitHub (Apr 6, 2024):
Any updates? The loading is still broken on some pages because of this.
@michael-haechler commented on GitHub (Mar 7, 2025):
+1 on this. Or are people solving this issue differently?
@pirate commented on GitHub (Mar 8, 2025):
Unfortunately there is no easy chrome CLI flag to add a delay before the screenshot, DOM, or PDF are rendered. Until we complete the switch to puppeteer away from the simple CLI calling convention, I don't have a great solution yet. If you can share any of the domains where you're experiencing it particularly bad I can maybe give some workaround recommendations.
@cedricdeboom commented on GitHub (May 8, 2025):
www.airbnb.com is particularly bad...
@pirate commented on GitHub (Dec 30, 2025):
ok I've completed the switch to
puppeteerondev, you can now configure delays using a few options:ArchiveBox.conf: