Suppression de la librairie lozad puisque les navigateurs font maintenant du lazy loading
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
{{"<!-- Start Counter Section -->" | safeHTML}}
|
||||
<section id="counter" class="parallax-section bg-1 section overly" style='background-image: url("{{ .bg_image_webp | absURL }}")'>
|
||||
<!-- this image is for trigger this section fallback background image -->
|
||||
<img class="lozad" style="display: none;" onerror="this.onerror=null;this.parentElement.style.backgroundImage= 'url({{ .bg_image | absURL }})'" data-src="{{ .bg_image_webp | absURL }}" />
|
||||
<img style="display: none;" onerror="this.onerror=null;this.parentElement.style.backgroundImage= 'url({{ .bg_image | absURL }})'" src="{{ .bg_image_webp | absURL }}" loading="lazy" />
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
{{ range .counter_item }}
|
||||
|
Reference in New Issue
Block a user