Skip to content
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

An issue in Google Chrome preventing Lighthouse Experiments #14561

Open
alekseykulikov opened this issue Nov 24, 2022 · 1 comment
Open

An issue in Google Chrome preventing Lighthouse Experiments #14561

alekseykulikov opened this issue Nov 24, 2022 · 1 comment
Assignees
Labels

Comments

@alekseykulikov
Copy link
Contributor

Inspired by WPT experiments, I tried to implement them for Lighthouse using puppeteer's request interception. It almost worked but there's a bug in Google Chrome: requests interception API doesn't allow to return Gzip response. Here's the repo to reproduce it. This bug breaks Lighthouse metrics significantly (100kb body response vs. 500kb degrades LH score).

I shared the bug with @paulirish he hinted it could be easily fixed. I hope that this issue brings awareness to this minor problem preventing Lighthouse Experiments.

@connorjclark
Copy link
Collaborator

connorjclark commented Feb 14, 2023

related: ChromeDevTools/rfcs#4 (in Lightrider/PSI, we've had to defer to response headers for the actual content size fetched on the network, so perhaps we could do the same for this use case). Could perhaps work today if you forced global.isLightrider = true and set X-TotalFetchedSize response header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants