Skip to content
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

Link Previews #8

Open
jyasskin opened this issue Sep 10, 2024 · 2 comments
Open

Link Previews #8

jyasskin opened this issue Sep 10, 2024 · 2 comments
Labels
TAG consensus: ❓Unknown The issue has been filed but not yet discussed in a meeting.

Comments

@jyasskin
Copy link

Lots of social and messaging applications generate previews of links. There are a few specifications for the components of the pages that contribute to these links (https://developer.x.com/en/docs/x-for-websites/cards/guides/getting-started, https://ogp.me/, https://oembed.com/), but no open forum for discussing extensions and no standard for how consumers should combine the available data.

Search engines also generate previews, but I suspect we want to avoid trying to standardize what they look at, both because it's much more complex, and because the relationship with sites is more adversarial.

@tomayac
Copy link

tomayac commented Sep 12, 2024

The arguably most open one of such specifications is schema.org, for example https://schema.org/WebApplication, https://schema.org/WebSite, and https://schema.org/WebPage. Here's an example from one of my Web apps, SVGcode:

Screenshot 2024-09-12 at 11 33 43

@LeaVerou LeaVerou added the TAG consensus: ❓Unknown The issue has been filed but not yet discussed in a meeting. label Sep 25, 2024
@csarven
Copy link

csarven commented Sep 26, 2024

Just a brief braindump:

Perhaps obvious but I presume the initial distinction to be made here is between the concept of a preview - essentially an image, which may be animated - as opposed to an embed (iframe/object) which may be interactable.

Although limited, HTML's poster attribute for the video element is conceptually similar to link previews.

Is the consideration here about the publisher expressing a default link preview image, e.g., along the lines of <a href="http://example.org/" preview="http://example.org/image.png"> or <a href="http://example.org/"><img rel="schema:screenshot" src="http://example.org/image.png" />, and so that the user-agent displays it? Otherwise, I presume user-agents have an implementation specific feature to fetch the target resource and overlay a preview of it when for example the user hovers a link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TAG consensus: ❓Unknown The issue has been filed but not yet discussed in a meeting.
Projects
None yet
Development

No branches or pull requests

4 participants