That's a bit of a tricky question. While you want the UI to feel fast,
you don't want to lie to the user (transmitting the message might fail
due to some network issue).

One approach might be to move the message immediately so it feels
fast, but still show some kind of working indicator next to it. On the
other hand, your app will still feel fairly responsive even if you
take route #2 (making the user wait) as long as you show a working
indicator. The critical thing is that the user feels like clicking the
send button immediately caused *something* to occur.

As an interesting aside, I remember some studies showed that people
feel like things are faster when they see a loading indicator, even if
the time taken wasn't any longer. I'll have to see if I can find some
links for that.

-Rob


On Jul 22, 2011, at 5:00 PM, Connor Montgomery <[email protected]> wrote:

> Hey all,
>
> Long-time reader, but this is my first time submitting. Anyways -
> quick question:
>
> What's the best way to handle (like, step by step process) something
> similar to updating a facebook status in a web-app? By that I mean -
> if I have an input box that gets submitted via AJAX, should I make it
> look like the action happened immediately to the user, so the UI is
> quick and responsive (working with a rails app on a dev environment
> that's pretty slow right now), then process all of the backend stuff
> after that has happened, or do I show an ajax-loader thing and make
> the user wait? I think the obvious answer is the first one - I just
> wanted some people who have been doing this longer than I have's
> opinion, and also some explanation, if you don't mind?
>
> Best,
> Connor Montgomery
> @c_t_montgomery
>
> --
> To view archived discussions from the original JSMentors Mailman list: 
> http://www.mail-archive.com/[email protected]/
>
> To search via a non-Google archive, visit here: 
> http://www.mail-archive.com/[email protected]/
>
> To unsubscribe from this group, send email to
> [email protected]

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to