Issue #5525✓ SolvedOpened Nov 19, 2023by duydvu3 reactions

Performance issue when adding more than 20 classes to a single component

Quick answerby artf3

Agree with the suggested alternative, I will update accordingly. Thanks @duydvu

Read full answer below ↓

Question

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Edge v119.0.2151.72 Reproducible demo link https://grapesjs.com/demo.html Describe the bug Hi, thank you for creating an amazing project. I would like to report an issue found during my use of GrapesJS. How to reproduce the bug?Select a componentAdd classes with arbitrary names until the component has over 20 classes.Select another component and re-select the component. What is the expected behavior? There should be no performance issue. What is the current behavior? The browser freezes for a noti...

Answers (2)

👍 Most helpfulartfDec 10, 2023

Agree with the suggested alternative, I will update accordingly. Thanks @duydvu

GJSBlockMay 17, 2026

Thanks for reporting this, @duydvu. Great question about Performance issue when adding more than 20 classes to a single component. The recommended approach with StyleManager is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific module Look for the on() event...

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.