Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

A snippet with too many blocks will kill the browser #769

Open
kfrohwein opened this issue Dec 8, 2016 · 2 comments
Open

A snippet with too many blocks will kill the browser #769

kfrohwein opened this issue Dec 8, 2016 · 2 comments

Comments

@kfrohwein
Copy link

kfrohwein commented Dec 8, 2016

Q A
Bug? yes
New Feature? no
Sulu Version cfca52b53a8921a6397c91b41972c27d99cd081c

Actual Behavior

If you have a Snippet of around 100 blocks that contain a title, text and image the browser will just stop working and you have to kill it.

Expected Behavior

Fix the JS if possible to display of an unlimited number of blocks or do pagination.

Steps to Reproduce

Create a snippet with lot of blocks and try to load it.
Console tells me multiple times:
husky.min.js?v=1481018069358:1 (node) warning: possible EventEmitter memory leak detected. 21 listeners added. Use emitter.setMaxListeners() to increase limit.

Possible Solutions

Maybe the events could be added in a bulk way on multiple elements so the workload will be less.
Or just add pagination if there are more than 25 blocks.

@kfrohwein kfrohwein changed the title List of too many snippets will kill the browser A snippet with too many items will kill the browser Dec 8, 2016
@kfrohwein kfrohwein changed the title A snippet with too many items will kill the browser A snippet with too many blocks will kill the browser Dec 8, 2016
@wachterjohannes
Copy link
Member

@kfrohwein do you have opened all the block items? can you please post your configuration here?

@wachterjohannes
Copy link
Member

the problem is that the component in each block will be started initially. this lasts into one request per media-selection which exists in each block and one request foreach block preview image. when there are 100 blocks the browser have to do 200requests. This lasts into a very long loading time (about 30min in this case) after doing all requests the form is normally usable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants