Re: XBL in document fragments

Erik Arvidsson wrote:
> I'm not sure what you mean here. If the loading is synchronous no other 
> events can interrupt it.

In that case the UA will seem hung to the user until the load completes 
(possibly quite a long time).  That's not really desirable.

> If the binding document is already loaded then this should be an issue

You mean "should not be"?  What if it's not already loaded?

> I don't see a reason for not loading the binding documents during the 
> page load (just like CSS files).

CSS files are not loaded "during page load" in the way you seem to think (for 
example, khtml loads them asynchronously with parsing the rest of the document; 
Gecko will hopefully do so as well, in the near future).

As it is, however, it is possible for script to execute before the CSS files are 
loaded even in browsers where loading of CSS blocks the parser.  Such scripts 
can ask for style information about the page, and they'll see a state with the 
CSS not loaded.  It sounds like you're trying to prevent this situation arising 
with XBL, and it's not clear to me how you prpose to do that.

-Boris

Received on Wednesday, 29 September 2004 02:47:55 UTC