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

Re: Executing script-inserted external scripts in insertion order

From: Simon Pieters <simonp@opera.com>
Date: Wed, 20 Oct 2010 10:59:50 +0200
To: "Henri Sivonen" <hsivonen@iki.fi>, "Adam Barth" <w3c@adambarth.com>
Cc: "public html" <public-html@w3.org>
Message-ID: <op.vku9x0mwidj3kv@simon-pieterss-macbook.local>
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

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