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

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

@kfrohwein

Description

@kfrohwein
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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions