Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance Issues in Headless Mode #17

Open
Wuerzburger opened this issue Mar 17, 2021 · 2 comments
Open

Performance Issues in Headless Mode #17

Wuerzburger opened this issue Mar 17, 2021 · 2 comments

Comments

@Wuerzburger
Copy link

Hello,
I'm using PuppeteerSharpExtra in a C# project. If I run with headless = false everything is working just fine.
But when I switch to headless = true the performance drop in a significant way even down to the point where I'm getting timeout errors.
It doesn't seem to be an issue with loading the page but with traversing the DOM-Structure. When I'm doing a screenshot after the timeout the objects in questions are always there.

Is there any workaround for this?

@Overmiind
Copy link
Owner

Hello, could you send an example project/code to reproduce it?

@Wuerzburger
Copy link
Author

Hi,
i also wrote a question on stackoverflow for this problem (I'm not sure if it isn't a general problem in puppeteer): https://stackoverflow.com/questions/66563417/puppeteer-in-headless-mode-with-waitforselector-sometimes-gives-timeout

There you can also see the example code and find additional information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants