A partial archive of discourse.wicg.io as of Saturday February 24, 2024.

[proposal] <link rel=“viewport” href=“viewport.json” />

carnoxen
2020-08-02

@viewport is deprecated for some reason. Then how about turning to json file? Like this:

<link rel="viewport" href="viewport.json" />

and viewport.json like this:

{
    "min-width": "120px",
    "min-height": "100px"
    ....
}
yoavweiss
2020-08-03

What’s the use case for this?

Note that this will add an extra RTT for the viewport discovery so likely to have an adverse effect (from a performance perspective) on the fetching of viewport-dependent resources (e.g. images).

patrick_h_lauke
2020-08-03

also, as this is all about layout/presentation, it really feels like that should be the domain of CSS (if not @viewport then maybe something else…but @yoavweiss is right, this needs a solid use case first)