You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/convert-with-chromium/_shared/_http_networking.mdx
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,15 +162,30 @@ If the browser hits a critical network error on the main page, the API returns `
162
162
-`net::ERR_FILE_NOT_FOUND`
163
163
-`net::ERR_HTTP2_PROTOCOL_ERROR`
164
164
165
-
By default, a broken image or stylesheet won't fail the conversion. The PDF is generated with missing assets. Set `failOnResourceLoadingFailed` to `true` to fail on any resource network error.
165
+
By default, Chromium does not wait for network activity to settle before converting. Two form fields control this behavior:
166
+
167
+
-`skipNetworkIdleEvent` set to `false`: waits until **zero** open connections persist for 500ms. Strictest option, but pages with long-polling or analytics connections may never reach this state.
168
+
-`skipNetworkAlmostIdleEvent` set to `false`: waits until **at most 2** open connections persist for 500ms. A practical middle ground for pages that keep a background connection alive (WebSockets, analytics pings, heartbeat polls).
169
+
170
+
Both default to `true` (no wait). If both are set to `false`, both events must fire before conversion proceeds.
171
+
172
+
A broken image or stylesheet won't fail the conversion on its own. The PDF is generated with missing assets. Set `failOnResourceLoadingFailed` to `true` to fail on any resource network error.
166
173
167
174
<ApiEndpoint
168
175
formFields={[
169
176
{
170
177
name: "skipNetworkIdleEvent",
171
178
type: "boolean",
172
179
defaultValue: "true",
173
-
description: "Does not wait for Chromium network to be idle.",
180
+
description:
181
+
"Does not wait for Chromium network to be idle (0 open connections for 500ms).",
182
+
},
183
+
{
184
+
name: "skipNetworkAlmostIdleEvent",
185
+
type: "boolean",
186
+
defaultValue: "true",
187
+
description:
188
+
"Does not wait for Chromium network to be almost idle (at most 2 open connections for 500ms).",
0 commit comments