-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core(lhr): include resourceSize in network-requests audit #7056
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -821,6 +821,13 @@ | |
"granularity": 1, | ||
"text": "Transfer Size" | ||
}, | ||
{ | ||
"key": "resourceSize", | ||
"itemType": "bytes", | ||
"displayUnit": "kb", | ||
"granularity": 1, | ||
"text": "Resource Size" | ||
}, | ||
{ | ||
"key": "statusCode", | ||
"itemType": "text", | ||
|
@@ -843,6 +850,7 @@ | |
"startTime": 0, | ||
"endTime": 640.1550000009593, | ||
"transferSize": 12640, | ||
"resourceSize": 12519, | ||
"statusCode": 200, | ||
"mimeType": "text/html", | ||
"resourceType": "Document" | ||
|
@@ -852,6 +860,7 @@ | |
"startTime": 630.2950000099372, | ||
"endTime": 2635.035000013886, | ||
"transferSize": 821, | ||
"resourceSize": 677, | ||
"statusCode": 200, | ||
"mimeType": "text/css", | ||
"resourceType": "Stylesheet" | ||
|
@@ -861,6 +870,7 @@ | |
"startTime": 635.496000002604, | ||
"endTime": 1204.6590000099968, | ||
"transferSize": 821, | ||
"resourceSize": 677, | ||
"statusCode": 200, | ||
"mimeType": "text/css", | ||
"resourceType": "Stylesheet" | ||
|
@@ -870,6 +880,7 @@ | |
"startTime": 636.6400000115391, | ||
"endTime": 1213.2910000218544, | ||
"transferSize": 139, | ||
"resourceSize": 0, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why do these 0 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
and this makes a lot more sense now when 139 isn't the |
||
"statusCode": 404, | ||
"mimeType": "text/css", | ||
"resourceType": "Stylesheet" | ||
|
@@ -879,6 +890,7 @@ | |
"startTime": 638.0040000076406, | ||
"endTime": 2849.3670000170823, | ||
"transferSize": 821, | ||
"resourceSize": 677, | ||
"statusCode": 200, | ||
"mimeType": "text/css", | ||
"resourceType": "Stylesheet" | ||
|
@@ -888,6 +900,7 @@ | |
"startTime": 638.7899999972433, | ||
"endTime": 1220.04100002232, | ||
"transferSize": 1108, | ||
"resourceSize": 964, | ||
"statusCode": 200, | ||
"mimeType": "text/css", | ||
"resourceType": "Stylesheet" | ||
|
@@ -897,6 +910,7 @@ | |
"startTime": 640.5979999981355, | ||
"endTime": 1228.5180000180844, | ||
"transferSize": 736, | ||
"resourceSize": 616, | ||
"statusCode": 200, | ||
"mimeType": "text/html", | ||
"resourceType": "Document" | ||
|
@@ -906,6 +920,7 @@ | |
"startTime": 641.3450000109151, | ||
"endTime": 1776.4320000133011, | ||
"transferSize": 733, | ||
"resourceSize": 613, | ||
"statusCode": 200, | ||
"mimeType": "text/html", | ||
"resourceType": "Document" | ||
|
@@ -915,6 +930,7 @@ | |
"startTime": 642.8679999953602, | ||
"endTime": 4216.161000018474, | ||
"transferSize": 821, | ||
"resourceSize": 677, | ||
"statusCode": 200, | ||
"mimeType": "text/css", | ||
"resourceType": "Stylesheet" | ||
|
@@ -924,6 +940,7 @@ | |
"startTime": 644.0820000134408, | ||
"endTime": 1792.0860000012908, | ||
"transferSize": 1703, | ||
"resourceSize": 1552, | ||
"statusCode": 200, | ||
"mimeType": "text/javascript", | ||
"resourceType": "Script" | ||
|
@@ -933,6 +950,7 @@ | |
"startTime": 645.529000001261, | ||
"endTime": 1236.1859999946319, | ||
"transferSize": 144, | ||
"resourceSize": 0, | ||
"statusCode": 200, | ||
"mimeType": "text/javascript", | ||
"resourceType": "Script" | ||
|
@@ -942,6 +960,7 @@ | |
"startTime": 3951.6250000160653, | ||
"endTime": 4779.641000000993, | ||
"transferSize": 24741, | ||
"resourceSize": 24620, | ||
"statusCode": 200, | ||
"mimeType": "image/jpeg", | ||
"resourceType": "Image" | ||
|
@@ -951,6 +970,7 @@ | |
"startTime": 2849.7340000176337, | ||
"endTime": 3961.049000005005, | ||
"transferSize": 71654, | ||
"resourceSize": 71501, | ||
"statusCode": 200, | ||
"mimeType": "text/javascript", | ||
"resourceType": "Script" | ||
|
@@ -960,6 +980,7 @@ | |
"startTime": 3874.7540000185836, | ||
"endTime": 4796.288000012282, | ||
"transferSize": 30174, | ||
"resourceSize": 84245, | ||
"statusCode": 200, | ||
"mimeType": "text/javascript", | ||
"resourceType": "Script" | ||
|
@@ -969,6 +990,7 @@ | |
"startTime": 2924.34100000537, | ||
"endTime": 3964.233000006061, | ||
"transferSize": 821, | ||
"resourceSize": 677, | ||
"statusCode": 200, | ||
"mimeType": "text/css", | ||
"resourceType": "Stylesheet" | ||
|
@@ -978,6 +1000,7 @@ | |
"startTime": 3066.252999997232, | ||
"endTime": 3772.7560000203084, | ||
"transferSize": 12640, | ||
"resourceSize": 12519, | ||
"statusCode": 200, | ||
"mimeType": "text/html", | ||
"resourceType": "XHR" | ||
|
@@ -987,6 +1010,7 @@ | |
"startTime": 3829.6360000094865, | ||
"endTime": 3968.59800000675, | ||
"transferSize": 0, | ||
"resourceSize": 4, | ||
"statusCode": 200, | ||
"mimeType": "text/plain", | ||
"resourceType": "Image" | ||
|
@@ -996,6 +1020,7 @@ | |
"startTime": 4967.373000021325, | ||
"endTime": 5536.498000001302, | ||
"transferSize": 221, | ||
"resourceSize": 95, | ||
"statusCode": 404, | ||
"mimeType": "text/plain", | ||
"resourceType": "Other" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't this bytes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah it is, i18n lib converts it I believe
lighthouse/lighthouse-core/lib/i18n/i18n.js
Lines 130 to 134 in f4b1635
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, it's interpreted by the
itemType
but is put into the LHR as thedisplayUnit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
er, that's not right. It is if it's in an i18ned string, otherwise it's not until
details-renderer.js
that thedisplayUnit
is used...which is pointless here because these aren't displayed in the html report