--- In [email protected], "yial2" <allen2...@...> wrote:
>
> > One thing the OP might want to try in addition to lightening the repeated 
> > components is to use a repeater and start out by just loading 5 (or however 
> > many are visible without scrolling), and then add to the collection after 
> > those are drawn.
> 
> Amy, thank you for your suggestion. I have one question which is related to 
> UI design based on your suggestion. Let's say I have 50 posts to display. I 
> only display first 5 and add rest of the posts after the first 5 are drawn. 
> By doing this, if a user want to see older post, let's assume post number 
> 46~50, the user should scroll down by using the vertical scroll generated by 
> repeater. Doesn't the user still have to wait for a while before the vertical 
> scroll bar is seen since repeater will need to render rest of posts before 
> the vertical scroll bar can be generated correctly?

I would do it this way...I'd load the first 5 (or 10, or however many have an 
acceptable load time), then on repeatEnd, I'd fetch some more and keep doing 
that as long as the repeater was generating repeatEnd events.  So what should 
happen is that the user sees the first n posts immediately, then the scroll 
thumb gets smaller and smaller as additional posts are loaded.  If your 
repeated component isn't ungodly heavy, this should be fairly efficient.

HTH;

Amy

Reply via email to