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

Discussion: Deprecating <amp-img> #43

Open
caroqliu opened this issue Mar 17, 2020 · 1 comment
Open

Discussion: Deprecating <amp-img> #43

caroqliu opened this issue Mar 17, 2020 · 1 comment

Comments

@caroqliu
Copy link

caroqliu commented Mar 17, 2020

Context

amp-img allows the runtime to effectively manage image resources based on the viewport position, system resources, connection bandwidth, or other factors. With increasing browser support for more granular control on the native img tag, it is time to discuss a deprecation strategy for amp-img.

What would it take to deprecate amp-img?

To support a comparable feature set without amp-img, we first need broader support for lazy loading and aspect ratio, but there may be other critical features preventing the possibility of any imminent change. First steps are: (1) understanding the minimal range of critical features and (2) tracking ongoing progress for these across browsers.

Open questions

  • Using the AMP cache: How much can be delegated as a serving optimization?
  • Providing placeholders and fallbacks: How do we replace placeholders and fallbacks?
  • Loaders: Is there still a way to provide default loaders?
@kristoferbaxter
Copy link
Contributor

Driveby thought: We could execute this as an AMP Cache transform (+other environments) by replicating the structure of a mounted amp-img but keeping the image lazy loaded via attribute.

@nainar nainar closed this as completed Apr 20, 2020
@nainar nainar reopened this Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants