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

Add decoding=async to images as appropriate in Shop #156

Open
chrishtr opened this issue Dec 13, 2017 · 1 comment
Open

Add decoding=async to images as appropriate in Shop #156

chrishtr opened this issue Dec 13, 2017 · 1 comment

Comments

@chrishtr
Copy link

There is a new attribute available on tags called "decoding", which specifies a developers
preference for synchronous or asynchronous decoding. the default is "auto", which means the user
agent may choose its own preference. For good performance it should probably be recommended to
use decoding=async on images that are content (images of clothing) as opposed to expected to be
strongly connected to the brand of the site or its navigation (logo, UI icons).

Spec:

https://html.spec.whatwg.org/#decoding-images

Safari will support this feature in the next release. Chrome is likely going to support it in version 65.

@keanulee
Copy link
Contributor

Made a branch for this at https://github.com/Polymer/shop/tree/async-img and deployed a test version to https://async-img-dot-polymer-shop.appspot.com/

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