"Serves images with a low resolution" - need help understanding "Expected Size" and how to fix #15319
-
Our articles are getting this warning on PSI saying we're serving images at a low resolution - which I would 100% agree with. I'm trying to understand how the recommendation from PSI works and how we can find a global solution to fix this issue across all the articles on our site. For starters, can someone explain the logic of how "expected size" is calculated? Many of our images are uploaded at a higher resolution, e.g., 1000px wide while the website displays a 412w image as shown in the PSI audit. Would it simply be a matter of using a 618w version to fix this recommendation? Understanding how that rec is calculated would help us apply an optimal sizing that fits our users, since we could even provide a higher size up to 1000w in most cases. I'd like to test to find the optimal size that would be beneficial for UX, but not too large for pagespeed. In order to find this balance, I think we need a better understanding of PSI's expected size logic. Also, in Chrome devtools I can see that there is an "intrinsic size" and the "rendered size". If we were to simply serve a larger size with a higher resolution, what are the drawbacks, if any, to rely on browser resizing of the image down from the intrinsic to the rendered size? I have reviewed the help link from that audit but it doesn't really answer my questions. Although from my basic knowledge about images, I assume the rec has something to do with pixel ratio/density - if that's true, how can I find out the pixel density to optimize for for my site and users? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Yeah we can definitely improve our docs for this audit (See #15221).
Your assumption is correct. If it helps:
Lighthouse emulates a Moto G power by default but this can be changed in your configuration. Lighthouse is a lab tool and doesn't collect any real user metrics to indicate what device actual users are loading the page with. |
Beta Was this translation helpful? Give feedback.
Yeah we can definitely improve our docs for this audit (See #15221).
Your assumption is correct. If it helps:
Lighthouse emulates a Moto G power by default but this can be c…