Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build some kind of preloading mecanism #16

Open
mgcrea opened this issue Jun 19, 2011 · 4 comments
Open

Build some kind of preloading mecanism #16

mgcrea opened this issue Jun 19, 2011 · 4 comments

Comments

@mgcrea
Copy link

mgcrea commented Jun 19, 2011

Playing with a long list (500+) facebook friends list with pics & buttons on each li.

The scroll feeling is only perfect when i have first scrolled down entirely. Before that i have some rectangles that render a bit late.
Maybe (with an option) it could be possible to "pre-load / pre-scroll the list", displaying some kind of opaque loading msg over it.

@jasonwinn
Copy link

Have you tried using -webkit-transform: translate3d(0,0,0); on your li elements?

@joehewitt
Copy link
Owner

I've tried that, didn't see a difference.

For really long lists, I think the only way we're going to get good performance is to create and destroy elements dynamically as you scroll, the way the Cocoa UITableView class works in iOS.

@tilomitra
Copy link

Do you mean remove and re-append to DOM? I don't think the DOM changes will be able to keep up with the scrolling speed. Is there a way to scroll through the list very quickly, thus putting all the elements in JS memory, to allow for good scrolling feel later?

@mgcrea mgcrea closed this as completed Jun 23, 2011
@mgcrea mgcrea reopened this Jun 23, 2011
@mgcrea
Copy link
Author

mgcrea commented Sep 11, 2011

About long lists & buffering, here is some interesting code from a sencha-touch Ext.List plugin addressing this specific point. Looks like it does indeed DOM manipulation.

http://www.sencha.com/forum/showthread.php?121225-High-Performance-Large-List-component-UxBufferedList
https://github.com/Lioarlan/UxBufList-Sench-Touch-Extension/blob/master/UxBufList.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants