Comments (1)
I agree with the observation that users care more about "critical content" like headlines and hero images. I expect we will learn a lot from LCP about how to identify this type of content. It's possible some of that logic could be reused by the layout stability algorithm.
On the other hand, layout stability already gives priority to these elements to some degree, by considering the size of the impact region. Where the critical content occupies a larger visual area than the non-critical ads and widgets, layout shifts affecting the critical content will be penalized to a proportionately greater extent.
Where a page has non-critical ads and widgets that both experience layout shifts and occupy a larger visual area than the critical content... I think we should penalize that too.
from layout-instability.
Related Issues (20)
- CumulativeLayoutShift as WPT custom metric empty HOT 1
- Update CLS to window-based
- Specify layout shifts during drag HOT 2
- Explain expectations for content which shifts while fully obscured by other content (i.e. covered by a fixed position z-index overlay)
- Resolve confusion from equal previous/current rects
- Input Exclusion (lastInputTimestamp and hadRecentInput) should include certain interactions with Browser UI. HOT 1
- The definition of DCLS and CLS (non-normative) should mention ignoring shifts with hadRecentInput: True
- Broken references in Layout Instability API
- Clarify value of entry.name: empty string or "layout-shift"
- Clarify Input Exclusion and interactions across iframes
- Margin Collapsing can cause not-visible shifts to elements
- Timeout on CLS evaluation HOT 2
- Clarification about Hover causing layout shift HOT 2
- `content-visibility: auto;` makes CLS go bananas HOT 2
- Consider excluding user-scroll + scroll-anchor in the same frame from being penalized HOT 1
- What events trigger LayoutShift Performance Callback? HOT 2
- Starting point shift with countering transform change should be ignored HOT 1
- Change events should also trigger hadRecentInput
- ignore inline-direction shift in/out of view
- Case of sticky sidebars changing from absolute to fixed HOT 1
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 layout-instability.