Theme editor preview takes too long to load if content source has lots of pages

Description

Steps to reproduce:

  1. Create a site.

  2. Select the attached space as content source.

  3. Enter theme editor

  4. Preview the content source overview page in 'detail' or 'hero' layout

Expected result:
Theme editor immediately previews the space as it's being edited.

Actual result:
Preview is loading for a very long time.

Technical details:

The main reason for the slowness is that the whole page tree will be built also for the preview where it cannot be used (and where all the pages would not otherwise be needed like when generating the whole site).

Environment

None

Assignee

Unassigned

Reporter

Sync User [K15t]

Labels

None

Participants

None

QA Status

None

Deployment

None

Documentation Status

None

UI Concept

None

External Votes

None

Components

Configure