Skip to content

Conversation

@yhatt
Copy link
Member

@yhatt yhatt commented Aug 9, 2025

Fix #682.

Marp CLI has used { waitUntil: ['domcontentloaded', 'networkidle0'] } in Puppeteer operations for a long time. However, the latest Chrome 139 seems not to work that in page.setContent().

This PR splits networkidle0 option into a separated operation await page.waitForNetworkIdle() to mitigate the timeout error.

Tip

page.setContent() function is not used when using --allow-local-files option.

@yhatt yhatt merged commit ba1caea into main Aug 9, 2025
@yhatt yhatt deleted the puppeteer-timeouted-set-content branch August 9, 2025 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Navigation timeout error in macOS and Linux

2 participants