7. JavaScript delay and timeout handling #9
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?
Description
Implement
--javascript-delayand--timeoutfor controlling render timing.Tasks
--javascript-delay <ms>→ use Chrome--virtual-time-budget=<ms>or wait strategy--timeout <seconds>→ set max wait time for Chrome processWKHTMLTOPDF_TIMEOUTenv var as default timeoutsubprocesswith timeout parameterAcceptance Criteria
--javascript-delay 5000waits 5 seconds before printing PDF--timeout 30kills Chrome after 30 seconds, exits with code 3WKHTMLTOPDF_TIMEOUT=120sets default to 120 seconds--timeoutoverrides env varNotes
--virtual-time-budgetpauses execution for specified millisecondssubprocess.run(timeout=...)orprocess.wait(timeout=...)