How to know when the network is idle (not on loading)
eduardosada opened this issue · comments
Hi @ebidel
Could you tell me why is this line commented?
I would like to know if it's possible to know when the network is idle.
I think I was experimenting. await page.goto(url, {waitUntil: 'networkidle2'});
should wait for the page to load and network to be idle. For this script, I was seeing some resources lazy loaded well after the page navigation was complete. I wanted to catch those too, hence the additional page.waitFor
after the page.goto
.