]> git.mxchange.org Git - friendica.git/commitdiff
add loading="lazy" also to vier templates
authorJakobus Schürz <jakobus.schuerz@home.arpa>
Wed, 4 Oct 2023 10:01:20 +0000 (12:01 +0200)
committerJakobus Schürz <jakobus.schuerz@home.arpa>
Wed, 4 Oct 2023 10:01:20 +0000 (12:01 +0200)
view/theme/vier/templates/contact/entry.tpl
view/theme/vier/templates/search_item.tpl

index e99aab93d2a52ff515d297bb44df722e83cc4da4..96f7643f6807b85e47d264d7542f459e282a6c3d 100644 (file)
@@ -6,7 +6,7 @@
                onmouseout="t{{$contact.id}}=setTimeout('closeMenu(\'contact-photo-menu-button-{{$contact.id}}\'); closeMenu(\'contact-photo-menu-{{$contact.id}}\');',200)"> -->
 
                        <!-- <a href="{{$contact.url}}" title="{{$contact.img_hover}}" /></a> -->
-                       <img src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" />
+                       <img src="{{$contact.thumb}}" {{$contact.sparkle}} alt="{{$contact.name}}" loading="lazy"/>
 
                        {{if $multiselect}}
                        <input type="checkbox" class="contact-select" name="contact_batch[]" value="{{$contact.id}}">
index 51de297d3ac6d97827a9a1451186a6e6546f4f9f..1c3b18894999329a2a1d872054f2468e54116e82 100644 (file)
@@ -15,7 +15,7 @@
                                <!-- onmouseover="if (typeof t{{$item.id}} != 'undefined') clearTimeout(t{{$item.id}}); openMenu('wall-item-photo-menu-button-{{$item.id}}')"
                                onmouseout="t{{$item.id}}=setTimeout('closeMenu(\'wall-item-photo-menu-button-{{$item.id}}\'); closeMenu(\'wall-item-photo-menu-{{$item.id}}\');',200)"> -->
                                <!-- <a href="{{$item.profile_url}}" target="redir" title="{{$item.linktitle}}" class="wall-item-photo-link" id="wall-item-photo-link-{{$item.id}}"></a> -->
-                                       <img src="{{$item.thumb}}" class="contact-photo{{$item.sparkle}}" id="wall-item-photo-{{$item.id}}" alt="{{$item.name}}" />
+                                       <img src="{{$item.thumb}}" class="contact-photo{{$item.sparkle}}" id="wall-item-photo-{{$item.id}}" alt="{{$item.name}}" loading="lazy"/>
                                <!-- <a rel="#wall-item-photo-menu-{{$item.id}}" class="contact-photo-menu-button icon s16 menu" id="wall-item-photo-menu-button-{{$item.id}}">menu</a> -->
                                <ul role="menu" aria-haspopup="true" class="wall-item-menu menu-popup" id="wall-item-photo-menu-{{$item.id}}">
                                {{$item.item_photo_menu_html nofilter}}