all repos — honk @ c9f171bcbbd714d4ed5bdeddb5d68ae8a0dbfdbe

my fork of honk

try lazy loading imgs.
Ted Unangst tedu@tedunangst.com
Thu, 20 Jul 2023 17:38:24 -0400
commit

c9f171bcbbd714d4ed5bdeddb5d68ae8a0dbfdbe

parent

5a418fc87c8d0deb9ce322cab24f0016aeafacf7

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M views/honk.htmlviews/honk.html

@@ -72,7 +72,7 @@ {{ else }}

{{ if $omitimages }} <p><a href="/d/{{ .XID }}">Image: {{ .Name }}</a>{{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }} {{ else }} -<p><img src="/d/{{ .XID }}" title="{{ .Desc }}" alt="{{ .Desc }}"> +<p><img src="/d/{{ .XID }}" loading=lazy title="{{ .Desc }}" alt="{{ .Desc }}"> {{ end }} {{ end }} {{ else }}