-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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(unused-css): exclude header size for estimating wasted bytes #15671
Conversation
"LCP": 0 | ||
}, | ||
"details": { | ||
"type": "opportunity", | ||
"headings": [], |
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.
TODO: I want to debug this change.
"scoreDisplayMode": "metricSavings", | ||
"numericValue": 0, | ||
"numericUnit": "millisecond", | ||
"displayValue": "", | ||
"displayValue": "Potential savings of 14 KiB", | ||
"metricSavings": { |
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.
TODO: debug change.
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.
it disappeared when I rebased
@@ -288,8 +288,7 @@ function getResponseReceivedEvent(networkRecord, index, normalizedTiming) { | |||
connectionId: networkRecord.connectionId || 140, | |||
fromDiskCache: networkRecord.fromDiskCache || false, | |||
fromServiceWorker: networkRecord.fetchedViaServiceWorker || false, | |||
encodedDataLength: | |||
networkRecord.responseHeadersTransferSize || networkRecord.transferSize || 0, | |||
encodedDataLength: networkRecord.responseHeadersTransferSize || 0, |
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.
when responseHeadersTransferSize
is not set the default should not be to make a record that treats all the bytes as being the size of the headers. thats what the old code was doing, and the test I modified revealed the error.
acafea5
to
67ba167
Compare
8e08da1
to
95a1a83
Compare
following up to #15640, but doing it for unused-css.