forcedotcom / scrollerjs

A JavaScript library that helps you build performant UI components for the web.
http://scrollerjs.com
Apache License 2.0
636 stars 63 forks source link

recycle DOM elements #24

Closed offthegrass closed 9 years ago

offthegrass commented 9 years ago

I've checked out the demos, and the only example I can see of recycling DOM elements is in the 'Endless' plugin:

http://scrollerjs.com/examples/feed/example-endless-plugin.html

the others just insert new DOM elements, right?

in the example, when you scroll to item 20 it loops back around. I'd like to use the recycle function but I don't want the list to loop when it gets to the end, I'd just like it to stop.

how can I do this?

offthegrass commented 9 years ago

gpuOptimization: true is the solution.