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

Wildly inconsistent results in headless mode #10014

Closed
rdsubhas opened this issue Nov 24, 2019 · 2 comments
Closed

Wildly inconsistent results in headless mode #10014

rdsubhas opened this issue Nov 24, 2019 · 2 comments

Comments

@rdsubhas
Copy link

rdsubhas commented Nov 24, 2019

Provide the steps to reproduce

  1. Run without headless mode: lighthouse --view "https://www.omio.com.br" a few times

image

  1. Run in headless mode: lighthouse --view --chrome-flags="--headless" "https://www.omio.com.br"

image

What is the current behavior?

More than 300% difference between headless and non-headless modes.

What is the expected behavior?

Regular lighthouse variance, less than 40%.

A lot of community/CI tools run using puppeteer, which defaults to chrome headless mode. So would be useful to at least have prominent documentation saying headless mode is not recommended.

Environment Information

  • Affected Channels: CLI
  • Lighthouse version: 5.6.0
  • Chrome version: 78.0.3904.108
  • Node.js version: v10.16.2
  • Operating System: MacOS 10.14.6

Related issues

@patrickhulce
Copy link
Collaborator

Thanks for filing @rdsubhas! That URL returns a bot-specific interstitial page with status code 405 when requested by headless Chrome. If the page is intentionally varying its output, then obviously you'll get variable results when measuring it.

Example Screenshot
image

@rdsubhas
Copy link
Author

Ah great thanks!

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