Skip to content

User agent does not include "Chrome Lighthouse" anymore? #14917

@hjelmdal

Description

@hjelmdal

What happened?

The user agent of the pagespeed api doesn't seem to include "Chrome Lighthouse" anymore, so that libraries like isBot do not detect when Google Lighthouse tests are running, and thereby we can not control loading 3rd party content blocking the viewport like cookie policy overlays, that is then considered LCP and might be blocking potential CLS elements.

User agent is now:
"Mozilla/5.0 (Linux; Android 11; moto g power (2022)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Mobile Safari/537.36"

What did you expect?

User agent before v10:

"Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4695.0 Mobile Safari/537.36 Chrome-Lighthouse"

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions