Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292633

Only reload updated part of Layout Builder element

$
0
0

Problem/Motivation

Currently, when an action occurs in layout builder, such as saving a block, the entire layout builder object is rebuilt and reloaded into the page. For a larger page with more blocks, this can result in a noticeable lag time until interactivity is returned to the user.

Proposed resolution

Return appropriate HTML fragments and only reload the affected part of the layout builder element instead of the whole thing.

Remaining tasks

Identify actions where this can happen.
Refactor the code.
Write new tests, if necessary.

User interface changes

None.

API changes

New LayoutBuilderBlockBuildTrait trait for generating block LB administrative markup.

Data model changes

None.

Release notes snippet

TBD.


Viewing all articles
Browse latest Browse all 292633

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>