Re: Executing script-inserted external scripts in insertion order

On Wed, 20 Oct 2010 10:32:17 +0200, Simon Pieters <simonp@opera.com> wrote:

> On Wed, 20 Oct 2010 10:08:16 +0200, Adam Barth <w3c@adambarth.com> wrote:
>
>> Here's another proposal for addressing this use case:
>>
>> document.executeScripts(['foo.js', 'bar.js', 'qux.js']);
>>
>> This fetches the scripts asynchronously and executes them in order.
>> Notice that you can use this API to create independent linearly
>> ordered queues of asynchronous script execution.
>
> This seems very similar to  
> http://www.whatwg.org/specs/web-workers/current-work/#dom-workerglobalscope-importscripts
>
> Maybe we should just make importScripts available in the non-worker  
> context as well.

I just realized that importScripts is sync.

-- 
Simon Pieters
Opera Software

Received on Wednesday, 20 October 2010 09:00:35 UTC