-
Notifications
You must be signed in to change notification settings - Fork 91
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
Chrome Lighthouse Screening "best practices" penalty on image size #176
Comments
Hello @marteloge But I'm currently working on the next major version of this plugin which is a complete rewrite and introduces many new features (currently available at the canary tag). One of those new features, the provided <Img src={MyImage} sizes={[624]} densities={[1, 2]} /> You could also add the So if you want, feel free to check out the canary version. It should already be quite stable, just a few features are missing before I'll publish it to the non-canary tag. |
@cyrilwanner Thanks! Really appreciate your answer :) I am using canary - always nice to test out the newest and to be able to help out testing. A great feature with densities! I am using a full-screen image and the size of the double density image is quite bigger so lighthouse starts complaining about the performance. I guess I should not worry too much about it. I think density is a great feature, especially on smaller images where size is smaller in general! |
Ah sorry, I didn't get it that you are already on canary. Thank you for testing it, everyone using it helps getting it shipped sooner! Is the page you are talking about public or the code open-source? I would still be interested to investigate the cause for that, it could also help others or maybe there is also a bug where |
Thanks for reply! It is public - I tried out the density but did not get it to work. I have now removed the image so it is not testable at the moment (did remove it for design reasons - not because of the lighthouse score!). Whatever I did I got a penalty on one of the scores. This was a full-screen image. I am not sure if there is a problem with this package - maybe it is just the scores in Lighthouse that are too sensitive 🤷♀️ |
Hello!
I guess this is not a direct issue with this package, but I wanted to discuss it anyway.
Should I worry about lighthouse giving a penalty for using optimized images? I guess it has something to do with the aspect ratio of the screen. Does not chrome adjust for that automatically?
Example 1 - Use next-optimized-image:
Category "Best practices": penalty (< 100%)
Category "Performance": 100%
Example 2 - use a regular img with only one src (img with 2500px width):
Category "Best practices": 100%
Category "Performance": penalty (< 100%)
Any ideas of how to deal with this? Ignore lighthouse or is there a proper solution to it? :)
The text was updated successfully, but these errors were encountered: