Improve performance when loading multiple editors on one page

Created on 26 June 2025, about 1 month ago

Problem/Motivation

There are certain methods in CKEditor5PluginManager that run when loading each ckeditor instance on a page. The methods in question are getCKEditor5PluginConfig and getProvidedElements. Some static caching could be added to these methods to save some CPU cycles in case the editors have the same configuration.

Steps to reproduce

n/a

Proposed resolution

Add static caching.

Remaining tasks

User interface changes

n/a

Introduced terminology

API changes

n/a

Data model changes

n/a

Release notes snippet

📌 Task
Status

Needs work

Version

11.0 🔥

Component

ckeditor5.module

Created by

🇸🇮Slovenia alecsmrekar

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

Comments & Activities

  • Issue created by @alecsmrekar
  • @alecsmrekar opened merge request.
  • 🇮🇳India ajits India

    I tried to reproduce this with vanilla Drupal, but was not able to do so.

    I tweaked my system to minimum requirements before doing so:

    • PHP memory_limit was adjusted to 64M.
    • CPU throttling of "20x slowdown"
    • Network throttling of "Slow 4G"

    I created a new content type "Test" with a rich text field with summary field. This was a multi-valued field with a cardinality of 100. I was only able to see very slow form load.

    I also tried to add a multi-valued rich text field to a paragraph; add this paragraph to the node type several times (on new and existing nodes) but couldn't see any issue except slowness. The change doesn't seem to have major impact on the UX.

    It will help if there are proper steps to reproduce the impact.

  • 🇳🇱Netherlands idebr
Production build 0.71.5 2024