mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2026-10-24 22:13:33 -05:00
Lazy load images
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -10,7 +10,7 @@
|
||||
{{ end }}
|
||||
|
||||
{{ if eq $type "image" }}
|
||||
<img src="{{ $src }}" alt="{{ $alt }}" />
|
||||
<img src="{{ $src }}" alt="{{ $alt }}" loading="lazy" />
|
||||
{{ else if eq $type "video" }}
|
||||
<video controls preload="metadata">
|
||||
<source src="{{ $src }}" alt="{{ $alt }}">
|
||||
|
||||
Reference in new issue
Block a user