Skip to content

Write HTML. Render video. Built for agents.

fix(engine): use domcontentloaded to avoid video preload navigation timeout (#1239)

Miguel Ángel62b7137e723c
diff --git a/packages/producer/src/parity-harness.ts b/packages/producer/src/parity-harness.ts
index e7d324f87e..e390ac81f8 100644
--- a/packages/producer/src/parity-harness.ts
+++ b/packages/producer/src/parity-harness.ts
@@ -284,8 +284,10 @@ async function captureParitySide(
): Promise<{ buffer: Buffer; styles: Record<string, unknown> }> {
const page = await browser.newPage();
try {
+ // Use domcontentloaded to avoid blocking on video media preloading, which
+ // can exceed the navigation timeout for compositions with many video sources.
await page.goto(url, {
- waitUntil: "load",
+ waitUntil: "domcontentloaded",
timeout: 60_000,
});
await waitForParityReady(page);