HTTPArchive / legacy.httparchive.org

<<THIS REPOSITORY IS DEPRECATED>> The HTTP Archive provides information about website performance such as # of HTTP requests, use of gzip, and amount of JavaScript. This information is recorded over time revealing trends in how the Internet is performing. Built using Open Source software, the code and data are available to everyone allowing researchers large and small to work from a common base.
https://legacy.httparchive.org
Other
328 stars 84 forks source link

Responsive images custom metrics #220

Closed eeeps closed 3 years ago

eeeps commented 3 years ago

Progress on https://github.com/HTTPArchive/almanac.httparchive.org/issues/2144

This is not quite ready to be merged...

It all works, but I need to:

Then there are some nice-to-haves... but that's the must do list.

PR'ing to get some more eyes on what's here now and comments in a place other than twitter.

My "test suite" such as it is is: https://codepen.io/eeeps/debug/Exmxwzq Here's a successful WPT run against that: https://webpagetest.org/custom_metrics.php?test=210629_AiDc5N_8d945980cad843b7ed362df6d53ef17e&run=1&cached=0

eeeps commented 3 years ago

@rviscomi thank you so very, very much.

Since you reviewed...

I'll see if I can get another full review by EOD.

zcorpan commented 3 years ago

The resource selection logic LGTM.

eeeps commented 3 years ago

Added a few more values to the reported JSON -- all stuff we were either already looking at in order to calculate other things, or the values of attributes we were previously only testing for the presense of.

There is some duplication with what's captured in images.js, but I think having those things here will make analysis that would have required a join less error-prone.


@rviscomi asked for some WPT results; here they are:

rviscomi commented 3 years ago

This looks great, thanks for the test cases. I'm comfortable merging this as-is in the interest of time. If there's any follow-up feedback or bug fixes we could open another PR.