W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2014

Re: Move sync APIs out of "Worker" into "SyncWorker"

From: Jake Archibald <jaffathecake@gmail.com>
Date: Tue, 29 Jul 2014 19:29:44 +0100
Message-ID: <CAJ5xic83CuVPNHYyq-vh3KhPd7S1CF-w+wLS7QObLTqzdrMXUA@mail.gmail.com>
To: Ian Hickson <ian@hixie.ch>
Cc: public-script-coord <public-script-coord@w3.org>, Alex Russell <slightlyoff@google.com>
On 29 July 2014 19:24, Ian Hickson <ian@hixie.ch> wrote:

> On Tue, 29 Jul 2014, Jake Archibald wrote:
> >
> > Over in ServiceWorker we want to get all of the APIs available to
> > workers (FormData, indexeddb, URL etc), but not the synchronous
> > interfaces such as
> > http://dev.w3.org/2006/webapi/FileAPI/#readingOnThreads
>
> Why not the synchronous APIs?
>

ServiceWorker needs to be able to handle all of the fetches of a page load,
for instance. Sync APIs result in loading them in series. There's never a
good reason to be using a sync API in ServiceWorker.
Received on Tuesday, 29 July 2014 18:30:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:22 UTC