Nested Blocks #2819
Replies: 4 comments 11 replies
-
We will soon start discouraging fragments within the LCP elements (marquee, hero-marquee, videos, anything within the first element of the page really) via the preflight which will receive a new performance tab. There is an authoring trade-off here regarding effort VS performance and so far, we titled towards performance. If you or GWP has concerns in regard to this, please ping Ted Pierson or @jedjedjedM to discuss options |
Beta Was this translation helpful? Give feedback.
-
To contribute to the thread with some numbers, I observed minor improvements with eager loading of nested blocks. (PR on top of @rahulgupta999's countdown-timer PR, my changes are only in utils.js) Catalog (nested mnemonic-list)Before (LCP: 2.2) After (LCP: 1.9) Test page (nested countdown-timer)Before (LCP: 1.3) After (LCP: 1.2) |
Beta Was this translation helpful? Give feedback.
-
For me this sounds like it should be either a variant of marquee or a feature. |
Beta Was this translation helpful? Give feedback.
-
This was a request made when doing the poc migration for helpx-internal. I was able to get nested blocks to work on the milo-consumer end without fragments but, as it's already been pointed out, we cannot do nested blocks in milo without a significant performance impact. That said, here's how it works (we emulate how franklin turns table rows into divs) |
Beta Was this translation helpful? Give feedback.
-
A few times, content authors have requested to author a block once but use it multiple times inside other blocks. The recent case has been the request for a countdown timer for black Friday. Now this timer block should be authored once but surfaced inside multiple pages (or blocks).
The current mechanism is to create the child block as a fragment and then use it inside the parent block. The drawback is that decoration for the child block needs to be invoked (loadblock) by the parent block. This can impact the LCP if done in a blocking way. if not then we run the risk of CLS. This thread is to collect the ideas (implemented | under-discussion | fresh)
Capturing reference to some related discussions:
a) https://github.com/orgs/adobecom/discussions/2719
b) https://github.com/orgs/adobecom/discussions/2390
Beta Was this translation helpful? Give feedback.
All reactions