germanysbestkeptsecret / Wookmark-jQuery

A jQuery plugin to create a dynamic, multi-column layout.
MIT License
2.63k stars 759 forks source link

After grid layout, want to expand tile for comment section, resize window taking long #156

Closed geekimposter closed 9 years ago

geekimposter commented 10 years ago

Hi,

I have page of about 100 images, the tiles are laid out fine. If a user clicks on the comment button, I append a chat section to the bottom of the tile and then call "$(window).trigger('resize');" to make the tile bigger for the chat section. When I have less than 50 images loaded, the resize works fine and quick. Since I implemented infinite scroll, the window resize call takes a lot longer when there are more than 50 images.

Is there another way (besides window resize) to make the tile bigger when someone clicks on the chat button?

Thanks!

Sebobo commented 10 years ago

Hi,

it shouldn't be that slow with so many items. What are the options you are using?

And you can just trigger 'refreshWookmark' on the container. Triggering a resize event takes more time than just updating wookmark.

Sebobo commented 9 years ago

No response so I will close this