Preload WASM files for compiling code component previews

Created on 9 April 2025, 12 days ago

Overview

The real-time preview in the code editor for code components requires two large WASM files: one for SWC (~19M), and one for Lightning CSS (~11M). They are currently downloaded on-demand, whenever the code editor is used for the first time, after which browsers will cache them.

Using a slower network this can take a significant amount of time.

Proposed resolution

We can preload these files for user who have the appropriate permission to use the code editor. E.g.:

  • /modules/contrib/experience_builder/ui/dist/assets/wasm_bg.wasm
  • /modules/contrib/experience_builder/ui/dist/assets/lightningcss_node-1.27.0.wasm

User interface changes

None.

Feature request
Status

Active

Version

0.0

Component

Theme builder

Created by

🇳🇱Netherlands balintbrews Amsterdam, NL

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