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

new audit: have a valid favicon.ico #10402

Open
wardpeet opened this issue Feb 28, 2020 · 3 comments
Open

new audit: have a valid favicon.ico #10402

wardpeet opened this issue Feb 28, 2020 · 3 comments

Comments

@wardpeet
Copy link
Collaborator

wardpeet commented Feb 28, 2020

Provide the steps to reproduce

  1. Run LH on https://condescending-haibt-2d0d42.netlify.com/bug.html

What is the current behavior?

URL Description
/favicon.ico(condescending-haibt-2d0d42.netlify.com) Failed to load resource: the server responded with a status of 404 ()

current behavior

What is the expected behavior?

Favicon shouldn't be a violation

Environment Information

  • Affected Channels: CLI, Node
  • Lighthouse version: 5.6.0
  • Chrome version: 80.0.3987.100
  • Node.js version: 12.14.1
  • Operating System: Windows

Related issues
#10381
#10190

@patrickhulce
Copy link
Collaborator

Thanks Ward! :)

In the strictest sense of the audit, I still think this is WAI. It was an error in the console, so we showed it. #6978 points out that this actually disappears when you run headless because it doesnt request the favicon.

Instead of ignoring this one error, I'd be in favor of splitting out the "Failed to load resource" messages into two separate audits, "Network requests failed" and "Page defines a favicon". At least it's clearer what's going wrong without diving into details and it's officially codified as a best practice to provide a favicon :)

@paulirish
Copy link
Member

We're on board with a dedicated best-practice has-a-favicon audit (that doesn't 404).

We'll skip a dedicated network-requests-failed audit for now.

@paulirish paulirish changed the title Failed to load favicon.ico in console violations Jun 23, 2020
@tunetheweb
Copy link
Member

We could also check the size of the favicon 404 - great post by @Nooshu here which shows that some favicons are returning a 6MB 404 response!!!

In fact maybe a separate audit should be for any large 404 responses rather than just limiting it to favicons?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment