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