addyosmani / tmi

TMI (Too Many Images) - discover your image weight on the web
Apache License 2.0
1.64k stars 45 forks source link

Not giving accurate count #7

Open ghost opened 9 years ago

ghost commented 9 years ago

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.

ghost commented 9 years ago

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

addyosmani commented 9 years ago

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.

ghost commented 9 years ago

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.