mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 03:35:53 +00:00
XW-4654: add data-src and lazyload class to images
This commit is contained in:
parent
64f23a89e8
commit
6226a58247
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue