add new standard attribute `loading`

This commit is contained in:
vv01f 2020-04-08 08:16:22 +02:00
parent ec7e5f2fff
commit 5202caf791
No known key found for this signature in database
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="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="loading">lazy</xsl:attribute>
</img>
</xsl:template>
@ -414,7 +415,8 @@
src="{$path}"
title="{@title}"
alt="{@title}"
class="{@class}"/>
class="{@class}"
loading="lazy"/>
</xsl:template>
<xsl:template match="item/image[1]">
@ -430,7 +432,8 @@
src="{$path}"
title="{@title}"
alt="{@title}"
class="{@class}"/>
class="{@class}"
loading="lazy"/>
</xsl:template>
<xsl:template match="link">

View File

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

View File

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