Disabling lazy load on a picture tag and its sources
-
Hi,
I am wondering about disabling lazy loading on a <picture> element with <sources>.
When I only add the ‘data-no-lazy=”1″‘ attribute to the
tag inside the <picture> tag, the <source> srcset still gets changed into ‘data-lazy-srcset’. Does that mean, that the
is not lazy-loaded but the srcset is ignored and never used because it still has the srcset changed for lazy-loading? Hence the only possible source to load is the default one in the
tag?
When I add the attribute ‘data-no-lazy=”1″‘ to the <source> also, the srcset is not changed. This is what I would expect even if I only add the attribute ‘data-no-lazy=”1″‘ to disable lazy-loading to the default
tag, but it seems I also need to add it to every <source> in the <picture> tag?
Thanks
- The topic ‘Disabling lazy load on a picture tag and its sources’ is closed to new replies.