Load Time Improvements
This commit is contained in:
@@ -34,12 +34,9 @@ async function setupPage(browser, { width, height }) {
|
||||
*/
|
||||
async function waitForPageFullyLoaded(page, url) {
|
||||
try {
|
||||
// Wait for DOM content and stylesheet to load
|
||||
// Wait for DOM content to load - no artificial delay, stream starts immediately
|
||||
await page.goto(url, { waitUntil: 'domcontentloaded', timeout: 30000 });
|
||||
|
||||
// Wait a brief moment for stylesheet to apply
|
||||
await new Promise(resolve => setTimeout(resolve, 500));
|
||||
|
||||
return true;
|
||||
} catch (err) {
|
||||
console.error('Page load error:', err.message);
|
||||
|
||||
Reference in New Issue
Block a user