-
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
Incorrect transfer size for redirected script URL #13724
Comments
Does it?
The bug may instead be in |
Yeah I think you're right, seems like it is only this one JS bundle that has a huge transfer size. Seems like the redirect is causing causing a problem because the URL of the bundle under unused JS is the initial URL that get's redirected to the actual script. |
DT protocol events use the initially requested URL for
I suppose we could follow the redirect chain to get the correct network request here. |
@adamraine @connorjclark If I were to fix this.. let's say in the upcoming weeks, propose the change, open a pr.. what do you think the timeline would be until it gets reviewed/merged and included in a release ? Should I invest time into this ? |
Releases happen every ~3 weeks. Merging a PR can vary a lot especially for external contributors. This may be complex enough where we would want to handle it internally, but you're welcome to open a PR if you have a solution. I have this marked as "needs investigation" because we don't know how widespread this issue is across our audits. Whenever we look for the network request of a redirected script, we will probably run into this issue. |
Okay gotcha, although I see there is already a pr opened for it so it's not the case anymore. Thanks for the response :) |
Discussed in #13714
Originally posted by gaborkalmar March 2, 2022
Hey ! I'm looking to improve the LH score of a project and in the network tab I'm getting 243kb as the size of the bundle, but on LH it appears as 900kb transfer size, with 500kb unused. How is this calculated ? Where should I even start with this ?
unused-javascript
uses the uncompressed size of resources under the column "Transfer size", however other audits such astotal-byte-weight
use the compressed size under the column transfer size. I'm not sure how many audits list the uncompressed size as the "Transfer size", but this seems incorrect.Reproduction steps:
connatix.playspace.js
undertotal-byte-weight
vsunused-javascript
.IMO, we should rename the column inunused-javascript
to something like "Uncompressed size".The text was updated successfully, but these errors were encountered: