add browser-level lazy loading

ref: https://web.dev/browser-level-image-lazy-loading/
This commit is contained in:
Aditya Telange committed 2021-03-16 13:18:57 +05:30
1 parent a982a29e24
commit c353447d8e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,3 +1,3 @@
<p>
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" {{ with .Title}} title="{{ . }}" {{ end }} />
<img loading="lazy" src="{{ .Destination | safeURL }}" alt="{{ .Text }}" {{ with .Title}} title="{{ . }}" {{ end }} />
</p>