Lazy load expensive elements in edit mode

Created on 22 February 2024, 4 months ago
Updated 3 April 2024, 3 months ago

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

πŸ“Œ Task
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland pvbergen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024