Problem/Motivation

Blocks, Webforms and other entities are currently provided as markup to the pagedesigner. This causes two problems:
- Generating the markup can take a long time on cache miss, delaying loading the pagedesigner.
- On editing such an element in the edit mode, the original markup is inserted, which does not match the settings on the element.

Proposed resolution

Add an endpoint to load the markup of an element for editing and add it to the editable frontend. The markup is generated on each request, including any changes done in editing.

User interface changes

- Additional REST endpoint (Pagedesigner Render)

API changes

- Additional REST endpoint (Pagedesigner Render)
- Additional additional field "remote_load" on pattern definitions.

Data model changes

- None

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

pvbergen created an issue. See original summary.

pvbergen’s picture

Status: Active » Reviewed & tested by the community

  • pvbergen committed ae5c3fd0 on 4.x
    Resolve #3423198 "Lazy load expensive elements"
    
pvbergen’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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