mirror of
https://github.com/docker/docs.git
synced 2026-04-02 01:08:53 +07:00
Merge pull request #19332 from dvdksn/lazy-load-images
site: add lazy loading for images
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
class="cursor-pointer hover:opacity-90"
|
||||
>
|
||||
<img
|
||||
loading="lazy"
|
||||
src="{{ $imagePath }}"
|
||||
alt="{{ .Text }}"
|
||||
{{ with $width }}
|
||||
@@ -39,6 +40,7 @@
|
||||
{{ partial "icon" "close" }}
|
||||
</button>
|
||||
<img
|
||||
loading="lazy"
|
||||
class="rounded max-w-full max-h-full"
|
||||
src="{{ $imagePath }}"
|
||||
alt="{{ .Text }}"
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
{{ end }}
|
||||
|
||||
<img
|
||||
loading="lazy"
|
||||
src="{{ $src }}"
|
||||
alt="{{ $alt }}"
|
||||
{{ with $title }}title="{{ . }}"{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user