W3C home > Mailing lists > Public > public-html@w3.org > October 2010

Re: Executing script-inserted external scripts in insertion order

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 12 Oct 2010 09:03:11 -0400
Message-ID: <4CB45C8F.9050704@mit.edu>
To: Ian Hickson <ian@hixie.ch>
CC: Getify <getify@gmail.com>, public html <public-html@w3.org>
On 10/12/10 6:52 AM, Ian Hickson wrote:
> For those of us who aren't familiar with the products mentioned so far
> on this thread, could someone explain why it is interesting to be able
> to delay the execution of a batch of scripts until after all those
> scripts have been downloaded?

More precisely, the requirement is that a batch of scripts run in a 
certain order because some of them depend on others in the batch.

> It seems to me like it would be simpler to either have all the scripts
> download and execute as they become available, with any dependencies
> resolved by having the scripts register to be notified when their
> dependencies become available

The use case is to use off-the-shelf scripts that do no such 
registration and are not even under the control of the page loading them 
(e.g. Google API scripts, etc) but nevertheless have dependencies on 
each other.

-Boris
Received on Tuesday, 12 October 2010 13:03:46 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:20 UTC