New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add meta tags equivs. for features were possible #350
Comments
@pornel this is great feedback; thanks! We could look at standardizing the additional |
Related to: #97 |
@pornel Can you ping me when you put up the manifest? Also, hypothetically speaking: do you foresee using a CDN for hosting the manifest? |
I'll ping you, but it'll be disappointing, since it's currently minimal :) I haven't thought about any special hosting for it, but we're moving the entire app behind a CDN, so technically it'll be on a CDN too. |
Minimal is good. Makes a case for dropping redundant stuff.
This is going to sound like a really stupid question (but important for an ongoing debate in #272), but how much of an issue would it be for FT if the browser didn't allow you to host this on a CDN (i.e., the manifest was forced to be same origin)? If that is a problem, what would you do instead? |
We currently define:
Currently missing HTML
Thoughts on the above? |
Actually, for So, we can get it from the element: <link rel=manifest lang=en> Or parent(s): <html>
<head lang=fr>
<link rel=manifest> Or root: <html lang=fr>
<head>
<link rel=manifest> |
And HTML to the rescue :) https://html.spec.whatwg.org/multipage/dom.html#language |
For Looking at https://wiki.whatwg.org/wiki/MetaExtensions and https://msdn.microsoft.com/en-us/library/ie/gg491732%28v=vs.85%29.aspx
Agreed re |
I think we really want |
No question that both are useful and needed. HTML has only one name defined so far, so a second one will have to be defined one way or another. I'm suggesting mapping manifest
In practice I expect it to be implemented by UAs as a chain of fallbacks: use |
I disagree with this. These HTML tags define the title, icon and theme_color of a web page, not of a web application. A web application consists of multiple web pages, which is the reason for the scope property. If all the manifest is doing is providing an alternative way to define metadata for a web page, there's very little point in its existence. See #272. |
@benfrancis What's the use-case for having this distinction? How does it affect consumers of the metatags? To me it seems the distinction is only theoretical, especially for single-page apps. |
@pornel For a web app with only one web page, the distinction is largely redundant. But most web apps consist of multiple web pages. The metadata of the manifest is intended to be applied to a browsing context to create an application context, the metadata then applies to all web pages loaded inside the application context. i.e. The manifest describes a web application as a whole, whereas the meta tags of a document just describe one page of a web application or web site. In the context of the FT app, I would say that the name of the app might be "FT", whereas the title of an individual page might be "UK banks urged to boost profitability", the title of a particular article. A user agent might use the name of the app for a launcher, but display the title of a particular page in a task switcher for example. Both are useful. |
(I imagine search engines would also want to distinguish between a particular news article and the news app as a whole when displaying search results). |
Yes, I agree about I was assuming In that case how about having mapping of manifest fields to meta with |
Something like that could work. |
I do agree having a sane fallback from manifest to meta elements makes sense and it is something we use on Chrome. Some of my issue with this is that the meta tags describe things related to the page and the manifest describes things relate to an installable experience and it is a subtle difference. re: Google tried "application-url" - no we never :) well, it is actually really really unclear about what was happening at that time. For all intents and purpose we never did if anyone cares about usage on the web. One thing that the Microsoft sorted with their original meta tags was "what to launch" which is one of the biggest pieces that was missing from most usages of meta tags that I would like to see defined. |
I think this is the key point. If a web site is a collection of web pages then a web app is an installable web site, not an installable web page. Until now we've not really had a way to provide metadata about a web site as a whole, only about individual pages, the manifest provides this. I'm not sure a web page is the right place to store metadata about a web site. This would require adding metadata like below to every page of a web site:
You could do it like that, in the same way that you could inline your CSS on every page. It just seems more efficient to put it in a separate file and link to it with a link relation, like we do with other resources that are shared between multiple pages of a web site, like stylesheets. |
@benfrancis, sure, web pages and webapps are different (and sometimes it's fuzzy and complicated), but it doesn't matter here! It's a red herring. The use cases work just fine without caring about this distinction. We know this for a fact, because such metatags are already successful and in widespread use, but with an I completely disagree with you about bandwidth being a problem. I think there are key things that must be considered:
|
@PaulKinlan Agreed! Without start URL we have to resort to ugly and fragile hacks with cookies and appcache to work around that. Ew. |
Made the metadata in the manifest authoritative instead. |
I've implemented manifest on app.ft.com (it's not live yet), and my feedback is:
<meta>
and<link>
elements we have already (including proprietary ones such asapple-mobile-web-app-title
andmsapplication-starturl
).<meta>
elements is not a problem at all for us, because when they're surrounded by very similar markup they gzip to almost zero. We already emit<meta>
and<link>
elements for "legacy" specs, social media sites, and vendor-specific features.So overall I'd strongly prefer an option to use
<meta>
and<link>
equivalents for basic Manifest features, to reduce overhead (both on-the-wire overhead due to inlined gzipped data, and maintenance overhead thanks to reusing existing HTML-meta pipeline instead of creating a new JSON one). As a bonus, they'd be localizable #338.The text was updated successfully, but these errors were encountered: