addyosmani/tmi

Not giving accurate count

Opened this issue · 3 comments

This script doesn't seem to gather all the images from the target URL. For example, when trying it on theverge.com it returns only 70 KB, when in fact there is over 1.1 MB of images downloaded from that request.

Maybe its not picking up background images? I'm getting numbers that don't seem to match either...

The data source used for getting image statistics on your pages is the PageSpeed Insights API. It's entirely possible that there are edge cases that API isn't currently picking up and I'm very interested in URLs that aren't accurately being reported so we can send feedback directly to that team.

I think maybe the issue is that I don't understand what image weight means. I interpreted it as the total size of all the images downloaded, but it looks like that is not correct. I believe that is what dendory was referring to as well.