Replies: 3 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
Having conducted a deeper investigation I cannot prove that the mentioned code causes re-redering of the background image and has any impact on LCP. |
Beta Was this translation helpful? Give feedback.
-
At the same time, we observe very long delay before rendering the LCP element on the page being studied: The original question, articulated by @npeltier was: "Why H2 from the second visible section is detected as the LCP element by Chromium, instead of elements from the first visible section". Per this web.dev article, the types of elements considered for Largest Contentful Paint are:
Also, LCP measurements use heuristics to exclude certain elements that users are likely to see as "non-contentful": If this heuristics filters the background image out (rule C), then H2 from the section two becomes the largest block element having text content (rule 5): |
Beta Was this translation helpful? Give feedback.
-
@vladen found out that placeholder decoration [0] was triggering a reload the marquee block image of a new milo page [1] reloading background image, resulting in LCP being the heading after while marquee was the actual good candidate.
For now no great idea how to fix this, but maybe this beautiful community will :)
[0]
https://github.com/adobecom/milo/blob/main/libs/utils/utils.js#L701
[1] https://pagespeed.web.dev/analysis/https-main--cc--adobecom-hlx-live-products-premiere-free-trial-download/oq3jfjeeqz?form_factor=mobile
[2] related analysis ticket https://jira.corp.adobe.com/browse/MWPW-142708
Beta Was this translation helpful? Give feedback.
All reactions