mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-14 18:37:30 -05:00
Lazy load images
This commit is contained in:
@ -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