Case ce-0026 · Scenario scenario-performance-large-content

Typing becomes slow with large contenteditable content

OS: Any Ubuntu 22.04 Device: Desktop or Laptop Any Browser: Chrome 120.0 Keyboard: US Status: draft
performance large-content typing chrome

Phenomenon

When a contenteditable region contains a large amount of content (thousands of DOM nodes), typing becomes noticeably slow. There is a visible lag between pressing keys and seeing characters appear.

Reproduction example

  1. Create a contenteditable div.
  2. Insert a large amount of content (e.g., 10,000+ DOM nodes).
  3. Place the caret at the end of the content.
  4. Start typing rapidly.
  5. Observe the delay between keypress and character appearance.

Observed behavior

  • In Chrome, typing becomes slow when the contenteditable contains many DOM nodes.
  • There is a noticeable lag between keypress and character rendering.
  • The browser may become unresponsive during rapid typing.

Expected behavior

  • Typing should remain responsive regardless of content size.
  • The browser should optimize rendering for large contenteditable regions.
  • Performance should degrade gracefully, not abruptly.

Playground for this case

Use the reported environment as a reference and record what happens in your environment while interacting with the editable area.

Reported environment
OS: Any Ubuntu 22.04
Device: Desktop or Laptop Any
Browser: Chrome 120.0
Keyboard: US
Your environment

Use this editable area to reproduce the described case.

Event log
Use this log together with the case description when filing or updating an issue.
0 events
Interact with the editable area to see events here.