mason/dhandler: Use the correct attribute to encourage lazy loading.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 17 Jun 2023 14:30:48 +0000 (15:30 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 17 Jun 2023 14:30:48 +0000 (15:30 +0100)
I don't know how I got this one wrong.  It doesn't work properly even
so.  More to come on this.

mason/dhandler

index f3a8cfc..6a81e78 100755 (executable)
@@ -277,12 +277,12 @@ Failed to find &lsquo;<% $path |h %>&rsquo;.
 % $tn //= "$STATICURL/folder.svg";
 % if ($focus) {
   <figure class="thumb focusthumb <% $size %>">
-    <img class="thumb <% $size %>" load=lazy src="<% $tn |h %>">
+    <img class="thumb <% $size %>" loading=lazy src="<% $tn |h %>">
     <figcaption><span class=name><% $caption %></span></figcaption>
 % } else {
   <figure class="thumb <% $size %>">
-    <a class=thumb href="<% $target |u %>">
-      <img class="thumb <% $size %>" load=lazy src="<% $tn |h %>">
+    <a class=thumb href="<% $target |hu %>">
+      <img class="thumb <% $size %>" loading=lazy src="<% $tn |h %>">
       <figcaption>
        <span class=name><% $caption %></span>
 % if (defined $comment) {