W3C home > Mailing lists > Public > www-svg@w3.org > September 2004

Re: sXBL: Not reloading already-loaded resources

From: Cameron McCormack <cam-www-svg@aka.mcc.id.au>
Date: Sat, 4 Sep 2004 00:07:26 +1000
To: www-svg@w3.org
Message-ID: <20040903140726.GC21867@mcc.id.au>

Robin Berjon:
> You want to know how many times to run init scripts and the such.

I hadn't really though about init scripts.  Say you had an xbl:import
element that referred to some SVG file.  If this SVG file had some
onload scripts, would these be run (they could potentially modify the
XBL inside the document)?

Another point.  In the description of xbl:import, it says:

  When an import element is parsed or inserted into a document, and
  whenever the bindings attribute is subseqently changed, the URI
  specified by its bindings attribute must be loaded (unless it has
  already been loaded).

Say an xbl:import element's bindings attrbute was initially set to URI
X.  Later, script changes the attribute to URI Y.  Later still, the
attribute is changed back to URI X.  Should X be reloaded?  If not, does
that mean UAs must keep around references to currently unneeded
documents just in case they are later referred to?  If it should be
reloaded, perhaps some text should be included that says that this
already-loaded behaviour should use some sort of reference counting.

> Is this preventing you from doing something?

No, just wondering.

Cameron

-- 
Cameron McCormack
|  Web: http://mcc.id.au/
|  ICQ: 26955922
Received on Friday, 3 September 2004 14:07:28 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:55 UTC