germanysbestkeptsecret / Wookmark-jQuery

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

Endless Scroll #216

Closed Rincerofwinds closed 7 years ago

Rincerofwinds commented 8 years ago

Hi, Before I ask the question just want to say Great Plugin - seems to do everything and more that I need!.

Is it possible to use the endless scroll to choose the first 10 in a list of images, and as you get to the bottom choose the next 10 and so on without having to use the API to add in extra images?

ie: have a list of 40 images on the page at the start but only show the first 10 and then gradually show the rest as you scroll down

Thanks Ian

Sebobo commented 8 years ago

Hi @Rincerofwinds,

thanks!

Do you want to do that to reduce loading time?

You could for example have all tiles in a hidden container and in the same event as in the endless scroll example add more items from there and update the grid when their images have loaded. Or have everything in a json object and generate tiles from that.

Rincerofwinds commented 8 years ago

Hi,

I'm trying to make it as easy as possible for people to add new items to the top of the list without having to worry about moving items around as each image will have a different link on it that has to be set manually... (about all I trust them to do is add in a list item with a link, anything more and I know it will all go wrong!)

Thanks

Sebobo commented 8 years ago

Then a json list with links could be the best fit, where you dynamically create the tiles from.