Page MenuHomePhabricator

Correlate image/page weight to cost for users downloading the page
Closed, DeclinedPublic


It would be a really nice thing to correlate the page/image weight with the cost for a user, something like Cost as a percentage of gross national income

Event Timeline

A simple way to get cost per mb is to test and use .

Lets if I can find a good example.

Haha, that didn't work out ok:

Screen Shot 2016-09-09 at 10.14.02 AM.png (246×1 px, 73 KB)

Screen Shot 2016-09-09 at 10.15.19 AM.png (838×2 px, 106 KB)

Got a simple version coming with an example of showing percentage of daily gross national income per capita in Madagascar (we can change country or have a couple of them).

I'm not 100% comfortable with:

  • The calculation of the cost should be 100% open. It comes from (the original figures comes from ITU and the World Bank) and the site is not Open Source (the data is free and it's built on top of (or using) WebPageTest) and that's annoys me because it's no way to check the actual numbers.
  • Is it a too complicated metric of percentage of daily gross national income per capital? I mean the metric is good and something really important but I don't like that's complicated to even know if the numbers are correct.
  • The cost is for the site on desktop. For mobile it depends on lazy loading (but that's kind of ok I think) the main thing is srcset so the actual numbers will not match. We are saying one cost it will not be the same on mobile.

For the first one: We could ask Tim Kadlec to Open Source the code so people see how it's calculated (the raw numbers)? I've emailed him before about mobile proxies but never got an answer but I can try again.

Change 309960 had a related patch set uploaded (by Phedenskog):
Show the cost for images.

Peter triaged this task as Medium priority.May 30 2017, 9:35 AM

Potentially put this data on to a wiki page in order to make use of it.

Good question from @Peter : What do we want the user to do with this information, if we expose it through Performance Inspector?

I think we are hoping that this will help people 1 - collect data about how heavy certain popular pages are/all pages which belong to a wikiproject or "bundle" kind of thing, and 2 - start thinking about how to optimise the readers' experience based on that?

Change 309960 abandoned by Phedenskog:
Show the cost for images.

We decided not to work on the Performance Inspector.