Re: Executing script-inserted external scripts in insertion order

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