While trying to extract critical css for few websites we are getting navigation timed out error.
Sample Site: https://www.vision-institute.com/
cssString: ''body { color: red }''
tried to modify the timeout time for upto 2 minutes but it still fails.
On debugging we found out that It was getting hanged on page.goto(site_url)
So We checked puppeteer library and there such issues already exists.
For now it works if we add the pageGotoOptions : reference https://github.com/puppeteer/puppeteer/blob/v14.0.0/docs/api.md#pagegotourl-options
While trying to extract critical css for few websites we are getting navigation timed out error.
Sample Site: https://www.vision-institute.com/
cssString: ''body { color: red }''
tried to modify the timeout time for upto 2 minutes but it still fails.
On debugging we found out that It was getting hanged on page.goto(
site_url)So We checked puppeteer library and there such issues already exists.
For now it works if we add the pageGotoOptions : reference https://github.com/puppeteer/puppeteer/blob/v14.0.0/docs/api.md#pagegotourl-options