Disable JS aggregation for GrapesJS

Created on 5 March 2025, 4 months ago

Problem/Motivation

Some aggregated JS files take a very long time to load. This only applies to editing in Pagedesigner.
This is seems to be due to preprocessing the whole pagedesigner including all of GrapesJS which is like 2MB of javascript.
https://git.drupalcode.org/project/pagedesigner/-/blob/4.x/pagedesigner....

So depending on the page's javascript content it will re-aggregate the whole file making PD load forever.

Maybe the file could also be set to minified:

https://git.drupalcode.org/project/pagedesigner/-/blob/4.x/pagedesigner....

Maybe that would keep it from re-parsing it as well.

Steps to reproduce

Proposed resolution

Instead of external, it should be minified and/or preprocess: false

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

4.0

Component

Code

Created by

🇫🇷France GuillaumePacilly

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024