Skip to content

Make editor component async #3217

Closed

Description

@JammingBen

The editor component currently loads synchronous, causing Vite to put it in one chunk together with other things from web-pkg. Since the editor component is quite big (due to deps like ProseMirror and highlight.js), we want to move it to a dedicated chunk by making it load async.

If loading async doesn't work for some reason, we should use Vite's codeSplitting capabilities to achieve that.

The editor chunk should be <750kb (unzipped) ideally.

Activity

  1. added
    Type:Maintenance
    on Aug 25, 2026
  2. moved this from Qualification to Backlog in OpenCloud Team Boardon Aug 25, 2026
  3. JammingBen commented on Aug 26, 2026

    @JammingBen
    MemberAuthor

    I just ran a visualizer for the bundle for another issue and checked the current editor chunk while I was at it. Turns out, all of the editor related code is already in its own dedicated chunk, and it's still almost 1MB (unzipped). It looks like we only get it down by splitting it up even more (highlight.js and re2js are the biggest).

    Making the editor load async is probably still a good thing since it ensures we load the chunk lazily.

    Image
  4. self-assigned this
    on Sep 14, 2026
  5. moved this from Backlog to In Progress in OpenCloud Team Boardon Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type:Maintenance

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions