lighthouse icon indicating copy to clipboard operation
lighthouse copied to clipboard

High CLS But No Element Found Under Diagnostics

Open ScottTravisHartley opened this issue 6 years ago • 6 comments

I took my website through Page Speed Insights ran it got a high CLS rating of .366, I went under diagnostics under the avoid large layout shifts tooltip and was given "no elements found".

https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fwww.sertmedia.com%2F&tab=mobile

Provide the steps to reproduce

  1. Run LH on https://www.sertmedia.com/

What is the current behavior?

Currently, I am given a high CLS without much feedback as to what is the root cause of it and no elements are provided under the diagnostics tab.

What is the expected behavior?

I expect the Diagnostics tab to provide me with an element or really anything to go off of.

Related issues I also ran the test locally using the latest version of Chrome Canary and I am getting a considerably lower number consistently instead of a CLS of .366 I am getting .042 on the mobile test.

Chrome Canary was being run in Incognito Mode for the test.

ScottTravisHartley avatar May 28 '20 17:05 ScottTravisHartley

Thanks for filing @ScottTravisHartley! I'm not sure what's going on with PSI but these are the elements I see locally

image

Do you not receive any elements found locally either?

patrickhulce avatar May 28 '20 17:05 patrickhulce

I did not on my Canary runs I will try it again here in a few minutes to see if I can figure out why I wasn't getting anything on it.

Also out of curiosity what CLS does it report for you?

ScottTravisHartley avatar May 28 '20 17:05 ScottTravisHartley

I fixed this by reinstalling Chrome Canary I tried running a few retests wouldn't spit anything out so I uninstalled and reinstalled the browser and it worked without a hitch and listed the 5 items.

ScottTravisHartley avatar May 28 '20 19:05 ScottTravisHartley

re: canary devtools, perhaps the previous installation of Canary had a pending update? If it was old enough (A few weeks i think ...) it'd be missing required features for LH to grab the CLS element (@Beytoven can correct me if I'm misremembering)

I'll dig into the PSI issue.

connorjclark avatar May 28 '20 21:05 connorjclark

I want to follow up and it looks like the PSI team has patches this.

I am still getting a higher CLS on average when testing from psi instead of lighthouse but the diagnostics information is atleast showing.

ScottTravisHartley avatar Jun 05 '20 15:06 ScottTravisHartley

@ScottTravisHartley you're correct, a fix was rolled out last Thursday. I'll close this for now, but feel free to reopen if needed!

jazyan avatar Jun 08 '20 18:06 jazyan