Views UI action buttons create janky layout shift on page load

Created on 15 April 2024, 8 months ago
Updated 18 May 2024, 7 months ago

Problem/Motivation

When editing a view, the action buttons (add attachment, add block, etc) load in a vertical configuration, and are subsequently moved via JavaScript. The vertical layout is briefly visible (depending on how quick the backend is), and creates a non-polished experience for the site-builder.

This step is to mitigate this jank as much as possible.

Steps to reproduce

Edit a view (such as /admin/structure/views/view/comment) and notice the jank.
If your backend is quick enough where it's not quite noticeable, you can use your browser's dev tools to throttle the connection to "fast 3g"

Proposed resolution

Similar to what was done in 🐛 Table filter creates jank (layout shift) on page load Fixed , the plan is to use the new at-media scripting feature to reduce the jank as much as possible in browsers that support this. For older browsers, the current behavior will still persist.

🐛 Bug report
Status

Fixed

Version

10.3

Component
Claro 

Last updated 2 days ago

Created by

🇺🇸United States mherchel Gainesville, FL, US

Live updates comments and jobs are added and updated live.
  • Performance

    It affects performance. It is often combined with the Needs profiling tag.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024