XW-4654: add data-src and lazyload class to images

This commit is contained in:
Mateusz Rybarski 2018-02-28 13:24:17 +01:00
parent 64f23a89e8
commit 6226a58247

View file

@ -5,9 +5,10 @@
{{#images}}
<figure class="pi-item pi-image">
<a href="{{url}}">
<img class="article-media-placeholder"
<img class="article-media-placeholder lazyload"
src="data:image/svg+xml;charset=utf-8,%3Csvg xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' viewBox%3D'0 0 {{width}} {{height}}'%2F%3E"
alt="{{title}}"
data-src="{{url}}"
{{#width}} width="{{width}}"{{/width}}
{{#height}} height="{{height}}"{{/height}} />
<noscript>