Suppression de la librairie lozad puisque les navigateurs font maintenant du lazy loading

This commit is contained in:
2022-09-13 23:27:16 +02:00
parent 5fac28ae1d
commit 9b9ceaea16
15 changed files with 14 additions and 32 deletions

View File

@ -8,7 +8,7 @@
<div class="row justify-content-center align-items-center">
<div class="col-12 col-md-2 m-md-0 m-5 m-md-3" style="height: 150px; background-image: url('{{ .image_webp | absURL }}'); background-size: contain; background-position: center; background-repeat: no-repeat; ">
<!-- this image is for trigger this section fallback background image -->
<img src="{{ .image_webp | absURL }}" style="display: none;" onerror="this.onerror=null;this.parentElement.style.backgroundImage= 'url({{ .image | absURL }})'">
<img src="{{ .image_webp | absURL }}" style="display: none;" onerror="this.onerror=null;this.parentElement.style.backgroundImage= 'url({{ .image | absURL }})'" loading="lazy">
</div>
<div class="col-12 col-md-9">
<div class="content-block">