As Olivero loads, the content shifts around.

This is due to two issues:

1) a BigPipe placeholder exists for the messages, which is then removed. Olivero gives this a margin bottom, which causes jank when it's removed.

2) A contextual region is loaded without the .contextual CSS class (which does a position: absolute;). Because the region is in the flow of the page, it causes a layout shift when the .contextual CSS class is added

Moving attached.

Issue fork drupal-3446078

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mherchel created an issue. See original summary.

mherchel changed the visibility of the branch 3446078-olivero-content-shift to hidden.

mherchel changed the visibility of the branch 3446078-eliminate-olivero-jank to hidden.

mherchel’s picture

Issue summary: View changes
mherchel’s picture

Status: Active » Needs review
javi-er’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new2.51 MB
new1.9 MB

Looks good to me, both functionality and code changes.

Before and after MR videos attached.

  • ckrina committed d4367113 on 11.x
    Issue #3446078 by mherchel, javi-er: Olivero content shift on page load
    

  • ckrina committed 387d6d6e on 11.0.x
    Issue #3446078 by mherchel, javi-er: Olivero content shift on page load
    

  • ckrina committed dd0ee83f on 10.4.x
    Issue #3446078 by mherchel, javi-er: Olivero content shift on page load
    

  • ckrina committed 7b292f05 on 10.3.x
    Issue #3446078 by mherchel, javi-er: Olivero content shift on page load
    
ckrina’s picture

Status: Reviewed & tested by the community » Fixed

Committed 7b292f0 and pushed to 10.3.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.