chiark
/
gitweb
/
~mdw
/
tgal
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8dc1dc0
)
mason/dhandler: Mark thumbnail images as loading lazily.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 18 Dec 2021 12:59:09 +0000
(12:59 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 25 Dec 2021 16:09:18 +0000
(16:09 +0000)
mason/dhandler
patch
|
blob
|
blame
|
history
diff --git
a/mason/dhandler
b/mason/dhandler
index 13731e15e4afb53965eed3c4163dcfdf08b135a8..de0f0a91c854308acb2c66ae790ec3fb561fbcff 100755
(executable)
--- a/
mason/dhandler
+++ b/
mason/dhandler
@@
-239,12
+239,12
@@
Failed to find ‘<% $path |h %>’.
% else { $tn = "$STATICURL/folder.svg"; }
% if ($focus) {
<figure class=thumb id=focusthumb>
% else { $tn = "$STATICURL/folder.svg"; }
% if ($focus) {
<figure class=thumb id=focusthumb>
- <img class=thumb src="<% $tn |u %>">
+ <img class=thumb
load=lazy
src="<% $tn |u %>">
<figcaption><span class=name><% $caption %></span></figcaption>
% } else {
<figure class=thumb>
<a class=thumb href="<% $target |u %>">
<figcaption><span class=name><% $caption %></span></figcaption>
% } else {
<figure class=thumb>
<a class=thumb href="<% $target |u %>">
- <img class=thumb src="<% $tn |u %>">
+ <img class=thumb
load=lazy
src="<% $tn |u %>">
<figcaption>
<span class=name><% $caption %></span>
% if (defined $comment) {
<figcaption>
<span class=name><% $caption %></span>
% if (defined $comment) {