Issue #2593💬 AnsweredOpened February 21, 2020by Davidvlv0 reactions

Flex-direction: column causes extreme slowdown in Chrome and Safari

快速解答by artf

Yeah, it's definitely slower, not sure what is really happening but at the first guess, it might be this function which checks if the component is a block (eg. div) or an inline element (eg. span) https://github.com/artf/grapesjs/blob/1214bbd957e88df78cd99491e53ab243010cd1ed/src/utils/Sorter.js#L549 Any help is welcome

Read full answer below ↓

Question

Hello, We are having a major issue - our layouts use copious amounts of display: flex; flex-direction: column;, and this is causing extreme amounts of lag in Chrome and Safari browsers (not Firefox).

If the flex-direction style is set to row, there is no slowdown at all.

Sample: https://jsfiddle.net/gkeft254/ click on an inner element, duplicate and drag it around.

Video: grapesjs slowdown.zip

Answers (2)

artfFebruary 8, 2022

Not able to reproduce anymore

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 →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.