-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Overly-verbose results when image has zero width #34
Comments
I wonder if the output here should be "Try using |
I think the specific rule that checks the sizes attribute should ignore But maybe we should add a new rule that checks for |
Sounds good to me. There are good use cases for having the image preloaded but initially invisible -- but most of the time, best practice is going to be to lazy-load it when whatever event that makes it visible happens. |
Fixed the overly verbose suggestion in 51ecc89 I keep this issue open for the feature to report warnings for |
Ran the bookmarklet on a page with an image whose initial state was
display: none
today. Hoo boy.Here's a reduced test case: https://codepen.io/eeeps/pen/YJKPew
And the results:
The text was updated successfully, but these errors were encountered: