W3C home > Mailing lists > Public > public-svg-wg@w3.org > October to December 2008

Executing multiply-referenced external scripts only once

From: Cameron McCormack <cam@mcc.id.au>
Date: Wed, 22 Oct 2008 14:45:08 +1100
To: SVG Working Group WG <public-svg-wg@w3.org>
Message-ID: <20081022034508.GE14281@arc.mcc.id.au>

Cyril Concolato:
> >  - What about externally referenced scripts ? 
> Here I just want to clarify that if two scripts in the same scripting
> context point to the same script file, then the script is loaded only
> once. I propose the following sentence:
> "Similarly to resource documents, in the case of multiple references,
> in the same scripting context, to the same external script file, the
> script file is processed once."

Actually, I disagree with this behaviour.  In Opera, Firefox and Batik,
two references to the same external script will result in the script
being run twice, which is what the HTML behaviour is.  Here’s a test:


The document alerts the number of times the external script was

Mobile implementors: could you say what your implementations do on the
above test?



Cameron McCormack ≝ http://mcc.id.au/
Received on Wednesday, 22 October 2008 03:45:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:29:40 UTC