Skip to content

[New Rich Text Editor]: improve performance by lazy loading heavy extensions #5163

@habibayman

Description

@habibayman

This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Desired behavior

Implement code splitting for resource-heavy extensions such as MathLive and Code Block syntax highlighting (e.g., lowlight, highlight.js and related dependencies).
The goal is to defer loading these extensions until they are actually used, in order to reduce initial bundle size and improve editor performance — especially for users who don’t immediately need these features.

I plan to begin with lazy-loading the Math and CodeBlock-related extensions and will also explore additional opportunities for optimization within those implementations.

Current behavior

  • Component is available for isolated development at http://localhost:8080/editor-dev#/
  • All the buttons in the toolbar are fully functioning
  • All extensions (including heavy ones) are loaded upfront

Notes:

Labels

  • DEV: frontend

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions