W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2010

[widgets] Zip vs GZip Tar

From: Gregg Tavares <gman@google.com>
Date: Wed, 28 Apr 2010 09:48:52 -0700
Message-ID: <k2xde4bd3191004280948qbca893ci9a319c1f0cd92ca8@mail.gmail.com>
To: Web Applications Working Group WG <public-webapps@w3.org>
I'm sorry if I'm not familiar with all the details of how the widgets spec
is going but the specs encourage comment so I'm commenting :-)

It seems like widgets have 2 uses

#1) As a way to package an HTML5 app that can be downloaded similar to a

#2) As a way to package an HTML5 app that can be embedded in a page but
    distributed as a single file (ie, do what Flash / Silverlight / Unity3D
    currently do except based in HTML5 / EMCAScript)

Use #2 would benefit tremendously if like Flash / Sliverlight / Unity3D the
application could start as soon as it has enough info to start as supposed
having to wait for the entire package to download.

To accomplish that goal requires using a format that can be streamed.
Zip is not such a format. Zip files store their table of contents at the end
the file. They can have multiple table of contents but only the last one
found is valid. That means the entire file has to be downloaded before a UA
correctly figure out what's in the file.

Has there been any consideration of switching the spec to a stream-able
like gzipped tar files?  It seems like a shame to miss this use case.
Received on Wednesday, 28 April 2010 16:49:22 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:07 UTC