Creating lots of connections would probably have a large overhead
making it slower than if you waited for the whole processing to end,
for each connection you have to factor the 2-way latency + server
response time. A better approach and already usable is HTTP Streaming/
Comet:

http://ajaxpatterns.org/HTTP_Streaming

On May 29, 7:36 pm, Andrew Ingram <[email protected]> wrote:
> Hi all,
>
> I'm not even sure if this is possible with JavaScript at the moment,
> but it would make a powerful feature if it were.
>
> If returning a list of resources as the response to a request, it's
> relatively trivial to configure the app (in Django at least) to flush
> the stream after each resource and provide a semi real-time feed of
> results, ie you don't have to wait for the last item to be calculated
> before the first one is returned. This uses Content-Encoding chunked.
>
> I was thinking that if jQuery could somehow recognise these types of
> response, it could iterate over these individual resources as they
> come over the wire, then the callback would be given individual items
> rather than the full response. This would make AJAXy functionality
> even more responsive because you can start handling parts of the
> response before the server has even finished generating the later
> parts.
>
> Maybe this is already possible, but I couldn't have any documentation
> or mention of it.
>
> Any thoughts on this idea?
>
> Regards,
> Andrew Ingram
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to