Lighthouse Summary shows wrong device emulation information #13434
Unanswered
chatur-sriganesh
asked this question in
Q&A
Replies: 1 comment
-
By default, Lighthouse will use its own emulation settings regardless of what you set up with puppeteer beforehand. I would recommend configuring your emulation settings in the config. See our config docs. That being said, we don't offer much range for the form factor string. "Emulated Moto G4" is always used if mobile emulation is configured, regardless of other emulation settings. Looks like #7053 is tracking this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Tried running lighthouse from puppeteer script with device emulation as "puppeteer.devices['iPad landscape']". Also visually i can see that resolution is now changed to that of an ipad.
However the report still shows the following:
"Emulated Moto G4
Slow 4G throttling
4x slowdown"
Any idea if i'm missing something here?
code snippet i am using:
const iPad = puppeteer.devices['iPad landscape'];
const browser = await puppeteer.launch({headless: false});
const page = await browser.newPage();
const flow = await startFlow(page, {name: 'Squoosh snapshots'});
await page.emulate(iPad);
await page.goto('https://squoosh.app/', {waitUntil: 'networkidle0'});
await page.emulate(iPad);
Beta Was this translation helpful? Give feedback.
All reactions