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

layout shift entries with no element/nodes/data #16348

Open
3 tasks done
jorgeluislazo opened this issue Feb 21, 2025 · 1 comment
Open
3 tasks done

layout shift entries with no element/nodes/data #16348

jorgeluislazo opened this issue Feb 21, 2025 · 1 comment

Comments

@jorgeluislazo
Copy link

FAQ

URL

https://www.cin7.com/

What happened?

Hi there,

I found the page above results in empty layout shifts:

Image

I used Lighthouse 12.3.0 run from CLI, something like:

lighthouse https://www.cin7.com/ --only-categories performance --throttling-method provided --screenEmulation.disabled --preset desktop --output json

Looking at the raw JSON, some items have a score but nothing else:

Image

I am attaching the outputted JSON file, as well as the raw trace (running again with -G flag)

latest-run.zip

empty-layout-shifts-lh.json

What did you expect?

Either including the relevant element for a layout shift or skipping empty layout shifts

What have you tried?

No response

How were you running Lighthouse?

CLI

Lighthouse Version

12.3.0

Chrome Version

133

Node Version

18.16.0

OS

Linux

Relevant log output

@adamraine
Copy link
Member

I can reproduce this. This is most likely caused by the nodes being removed from the DOM before the end of the Lighthouse run. If so, there isn't much we can do however we could still display some sort of "Node removed from DOM" message instead of just blank space.

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

No branches or pull requests

2 participants