add new standard attribute `loading`

This commit is contained in:
vv01f 2020-04-08 08:16:22 +02:00
parent ec7e5f2fff
commit 5202caf791
Signed by untrusted user who does not match committer: vv01f
GPG Key ID: 02625A16AC1D1FF6
3 changed files with 10 additions and 4 deletions

View File

@ -370,6 +370,7 @@
<xsl:attribute name="title"><xsl:value-of select="$license"/></xsl:attribute> <xsl:attribute name="title"><xsl:value-of select="$license"/></xsl:attribute>
<xsl:attribute name="alt"><xsl:value-of select="$license"/></xsl:attribute> <xsl:attribute name="alt"><xsl:value-of select="$license"/></xsl:attribute>
<xsl:attribute name="class"><xsl:value-of select="concat('line-height-size ',@class)"/></xsl:attribute> <xsl:attribute name="class"><xsl:value-of select="concat('line-height-size ',@class)"/></xsl:attribute>
<xsl:attribute name="loading">lazy</xsl:attribute>
</img> </img>
</xsl:template> </xsl:template>
@ -414,7 +415,8 @@
src="{$path}" src="{$path}"
title="{@title}" title="{@title}"
alt="{@title}" alt="{@title}"
class="{@class}"/> class="{@class}"
loading="lazy"/>
</xsl:template> </xsl:template>
<xsl:template match="item/image[1]"> <xsl:template match="item/image[1]">
@ -430,7 +432,8 @@
src="{$path}" src="{$path}"
title="{@title}" title="{@title}"
alt="{@title}" alt="{@title}"
class="{@class}"/> class="{@class}"
loading="lazy"/>
</xsl:template> </xsl:template>
<xsl:template match="link"> <xsl:template match="link">

View File

@ -22,7 +22,8 @@
<img src="{$baseurl}images/footer/cc-somerights20.png" <img src="{$baseurl}images/footer/cc-somerights20.png"
width="88" height="31" width="88" height="31"
alt="Creative Commons License" alt="Creative Commons License"
title="Creative Commons Attribution-ShareAlike 2.0 Germany License" /> title="Creative Commons Attribution-ShareAlike 2.0 Germany License"
loading="lazy"/>
</a> </a>
<xsl:comment> <xsl:comment>
<xsl:text> <xsl:text>
@ -58,7 +59,8 @@
<img src="{$baseurl}images/footer/html5-badge-h-multimedia-semantics.png" <img src="{$baseurl}images/footer/html5-badge-h-multimedia-semantics.png"
width="83" height="32" width="83" height="32"
alt="HTML5 Powered with Multimedia, and Semantics" alt="HTML5 Powered with Multimedia, and Semantics"
title="HTML5 Powered with Multimedia, and Semantics"/> title="HTML5 Powered with Multimedia, and Semantics"
loading="lazy"/>
</a> </a>
</li> </li>
</ul> </ul>

View File

@ -247,6 +247,7 @@
<xsl:if test="@style"> <xsl:if test="@style">
<xsl:attribute name="style"><xsl:value-of select="@style"/></xsl:attribute> <xsl:attribute name="style"><xsl:value-of select="@style"/></xsl:attribute>
</xsl:if> </xsl:if>
<xsl:attribute name="loading">lazy</xsl:attribute>
<!-- News-Items haben ihre Bilder abwechselnd rechts und links... --> <!-- News-Items haben ihre Bilder abwechselnd rechts und links... -->
<xsl:attribute name="class"> <xsl:attribute name="class">