ducksboard / gridster.js

gridster.js is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns
http://gridster.net/
MIT License
6.04k stars 1.2k forks source link

add widget very slow #427

Open yamila-fraiman opened 10 years ago

yamila-fraiman commented 10 years ago

Hi, i know there is a performance problem when adding new widgets. I think the problem is in the next_position function. Is there any solution? I need to add houndred of widgets and actually my browser stops. Or could you recommend me a similar plugin with drag & drop, resize, etc? Thanks.

jhowley89 commented 10 years ago

take a look at #426

yamila-fraiman commented 10 years ago

This does not solve my problem. I can't insert 50 rows without breaking the browser.

yamila-fraiman commented 10 years ago

For example:

for (var i = 0; i < 50; i++) { addWidget('Hello world.', 15, 10); } function addWidget(content, size_x, size_y, col, row) { gridster.add_widget('< li class="gs-w">' + content + '< /li>', size_x, size_y, col, row); }

jhowley89 commented 9 years ago

can you create a simple jsfiddle?