Answer the question
In order to leave comments, you need to log in
Is it possible to use decoding=async attribute of img tag instead of lazy load?
Is it possible to use decoding=async attribute of img tag instead of lezi load?
Essentially, the decoding attribute is set to async and loads the img asynchronously. At the same time, using this attribute, instead of lazy load, the size of the code is reduced, since the noscript tag is also added there. Yes, and minus one plugin for Wordpress.
What are the nuances here and is it worth switching to decoding async?
Answer the question
In order to leave comments, you need to log in
Everything I found on the topic - https://www.chromestatus.com/feature/4897260684967936 , https://github.com/whatwg/html/issues/1920 , https://usefulangle.com/post/277/img- decoding-attribute , https://developer.mozilla.org/en-US/docs/Web/API/H...
As far as I understand, decoding=async is not related to lazy load, as it is about decoding , and not about loading, and secondly, it is trite almost nowhere (update: it turns out that it is in many places, but still this does not negate the fact that it does not apply to lazy load)
The decoding=async attribute is rarely used, but it is an important and useful tag.
Learn more about the effect of this tag in the video https://www.youtube.com/watch?v=F6KGcb6trXc&t=5637s
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question