Comments (3)
We noticed that getCLS(onReport) is only firing when the user changes to another tab.
That is intended, as that's the point when the metric value should be reported to an analytics server (i.e. in the visibilitychange
event). See the docs on getCLS()
for more details.
An animation triggered by a hover event is reporting as
hadRecentInput: false
, these seem to be related to different children elements having "transform: " properties.
The hover action is not considered "user input"—that's limited to things like tap, click, and keypress, so if layout shifting is happening on hover, it's expected that it will increase CLS.
We also noticed that a child element of hover animated element has
backface-visilbity: unset
, our hero carousel image (a sibling element of a higher parent container element) then triggers CLS entries (withreportAllChanges = true
), however withbackface-visiblity: hidden
the hero carousel no longer triggers CLS, but hovering in and out from the animated element does trigger CLS again.
Sorry, it's a bit hard to follow exactly what you're describing, are you saying there is layout shifting going on, but you can't see it?
I have recorded a video of the steps above, please let me know if you would like to see it.
Yes, a video would be really helpful. And a demo (if you have it) would be even better.
from web-vitals.
Thank you for clarifying the first two points @philipwalton! We figured that was the case for the hidden
state change, but had to make sure.
For the hard to follow behavior please follow this link and request access: https://drive.google.com/file/d/1bY3JAUW-_5VWxFIpI3HR0ldiXs11KnHz/view?usp=sharing
Unfortunately, we do not have a public facing demo but if you need additional details just let me know and I will try to provide as much context as possible.
from web-vitals.
I'm going to close this as I believe the issue is related to the Layout Instability API and not this library. If this is still a problem for you, I'd recommend filing an issue with that spec or directly in Chrome (via crbug.com).
from web-vitals.
Related Issues (20)
- %s
- %s
- ☺️
- Webpack Module is undefined HOT 2
- Discord
- 分享自Bing: 请登录你的帐户
- GoogleChrome/web-vitals: Essential metrics for a healthy site. HOT 1
- iOS Chrome Support HOT 1
- _/release
- differences in TTFB in safari vs chromium based browsers HOT 1
- Status of Python versions
- Link
- LCP value setting to 0 intermittently HOT 7
- Add INP breakdown entries to the attribution build HOT 3
- User consent policy HOT 1
- Firefox LCP tests failing
- Bug: LCP attribution can include `resourceLoadDelay` attribution timings far greater than the LCP value in cases where `onTTFB` discards the navigation data HOT 1
- FCP and TTFB are triggered multiple times HOT 7
- contributing LoAF basesd code that idenifies LoAF, INF and JS long tasks data HOT 1
- Capturing metadata with events HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web-vitals.