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
feat(puppeteer): enable new
headless mode
#1910
Conversation
wowo, this new proper headless could solve a lot of small issue 🔥 |
We will probably keep this for later, from what I've read the new headless mode can be much slower. I haven't seen that in my initial testing, but we need to be more careful here. Will probably make this configurable from outside, so you can opt in to the new headless mode and give it a try yourself - now it will probably fail on some |
any update on this? |
Nope, same as my last comment. But I think you can opt-in for the new headless mode already, this PR only changes the default. Something like this should work: const crawler = new PuppeteerCrawler({
launchContext: {
launchOptions: {
headless: 'new',
},
},
// ...
}); |
I have tried headless new but it is taking very high memory, have you tried benchmarking it with headless true? @B4nan |
Can we try to test this out @B4nan. Facing similar memory issues with headless |
I feel like you guys misunderstood this completely. This PR enables the new headless mode. That is what you can already do yourself, as I showed in my last comment. And as I already said, the new headless mode has a significant memory impact, so we don't want to adopt this just now. Saying you have memory issues with the new headless mode just confirms what I said already - this is not something we can fix anyhow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request is neither linked to an issue or epic nor labeled as adhoc!
developer.chrome.com/articles/new-headless To opt out of it and keep using the old headless, add `headless: 'old` to your puppeteer crawler options.
Potential cause of the broken tests: puppeteer/puppeteer#10017 Things are working fine locally, so might be a linux issue (but that's the main target for running crawlee in the cloud). |
https://developer.chrome.com/articles/new-headless/
To opt out of it and keep using the old headless, add
headless: 'old
to your puppeteer crawler options.