GoogleChrome / lighthouse

Automated auditing, performance metrics, and best practices for the web.
https://developer.chrome.com/docs/lighthouse/overview/
Apache License 2.0
28.29k stars 9.36k forks source link

Treemap double-counts JS resource reached via redirect #14014

Closed ukslim closed 2 years ago

ukslim commented 2 years ago

FAQ

URL

https://retirementcalculator.hsbc.co.uk/

What happened?

Network tab shows what happens handling the GET request for https://minerva.wealthwizards.io/pension-guidance/main.js The response is a 307 redirect, and the browser goes on to GET https://minerva.wealthwizards.io/pension-guidance/1.3.35/assets/main.js

However, Lighthouse's treemap report includes a box for both URLs, assigning the full size of that resource to both.

image

What did you expect?

I would expect to see one box for https://minerva.wealthwizards.io/pension-guidance/1.3.35/assets/main.js (redirected from https://minerva.wealthwizards.io/pension-guidance/main.js)

What have you tried?

No response

How were you running Lighthouse?

Chrome DevTools

Lighthouse Version

9.5.0

Chrome Version

101.0.4951.64 (Official Build) (arm64)

Node Version

No response

OS

OSX

Relevant log output

No response

connorjclark commented 2 years ago

Thanks for the report!

On latest master version of Lighthouse, this is no longer an issue:

image

Our 10.0 release (no date yet) will have this fixed.

one of these prs fixed it: #13704 #13802

frankii91 commented 1 year ago

Lighthouse 11.0.0 the problem is back? I have a similar case and I don't know what is the reason. How to find the reason for duplicate scripts for this test. ?

connorjclark commented 1 year ago

Open a new issue and fill out the form.