On Tue, Apr 29, 2014 at 11:02 AM, Ian Hickson <
i...@hixie.ch> wrote:
> On Tue, 29 Apr 2014, Alex Russell wrote:
>> On Mon, Apr 28, 2014 at 9:31 PM, Ian Hickson <
i...@hixie.ch> wrote:
>> > On Thu, 24 Apr 2014, Mounir Lamouri wrote:
>> > >
>> > >
https://w3c.github.io/manifest/
>> >
>> > As far as I can tell, this is almost entirely redundant with existing
>> > features in HTML.
>>
>> The other way to phrase this is that HTML has invented many features
>> which are so redundant in each-and-every page that a manifest is now an
>> attractive way to become DRY [1].
>
> If the goal is to remove redundant data from HTML, then we should do that.
> The manifest doesn't do that.
>
> HTML Imports might be a better way to do that. That way we would get all
> the benfits of not reinventing the wheel, with all the caching and DRY
> benefits of the external file.
Using HTML Imports here would have two big downsides:
1. It would force the metadata information to be downloaded when it's
not needed. A plain <link rel=import> is going to cause blocking
behavior whenever <script> is used (i.e. quite often). This is totally
unneeded for the metadata that we're wanting to express here. Even if
we ask people to use <link rel=import async> it still means that the
manifest is going to compete with other resources that are also
loading async (which we're hoping eventually will be a lot).
2. The current format used to express metadata is not very elegant to
extend. See the email I sent previously in this thread for some
examples of the level of complexity of metadata that we're likely to
eventually will need to express. What would those examples look like
if we stick to <meta> elements?
The short of it is that the current <meta> elements is a fairly poorly
designed feature. The data that we're talking about here isn't really
data about the page. It's data about a group of pages that make up a
conceptual "app". Expressing that as metadata for a single page will
create awkwardness, no matter if we allow it to be syntactically be
broken out into a separate file or not.
Another way to look at it is this. Say that we didn't have <script
src=...> and <link rel=stylesheet> and instead just had
<script>...</script> and <style>...</style>. Would we have designed
external stylesheets and external scripts by using <link rel=import>
pointing at HTML files containing single <script> or <style> elements?
Would that be an improvement or worse for developers?
/ Jonas