XMLHttpRequest and event loops

I still haven't quite figured out how to do event loops for  
XMLHttpRequest. Would it make sense to just emulate the media elements and  
have two task sources here? One for the network stuff and one for the  
events?

Is it so that in case of the synchronous request you do not queue a task  
to do a request and for the asynchronous request you would? Currently  
Gecko does trigger timeouts and several events during a synchronous  
request, how is that represented in the event model? (I'm not really sure  
whether we want to follow that model, but I'm just wondering if it works.)

I'm asking these quite high level questions because I cannot really figure  
out the complete model yet for XMLHttpRequest based on e.g. Web Workers  
and the media elements.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Monday, 9 February 2009 17:04:18 UTC