Suppression de la librairie lozad puisque les navigateurs font maintenant du lazy loading
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
{{"<!-- Welcome Slider-->" | safeHTML}}
|
||||
<section class="hero-area" style='background-image: url("{{ .bg_image_webp | absURL }}")'>
|
||||
<!-- this image is for trigger this section fallback background image -->
|
||||
<img class="d-none" src="{{ .bg_image_webp | absURL }}" onerror="this.onerror=null;this.parentElement.style.backgroundImage= 'url({{ .bg_image | absURL }})'"/>
|
||||
<img class="d-none" src="{{ .bg_image_webp | absURL }}" onerror="this.onerror=null;this.parentElement.style.backgroundImage= 'url({{ .bg_image | absURL }})'" loading="lazy"/>
|
||||
|
||||
<div class="block p-6">
|
||||
{{ if .icon }}
|
||||
|
@ -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">
|
||||
|
@ -18,11 +18,11 @@
|
||||
{{"<!-- copyright -->" | safeHTML}}
|
||||
<div class="copyright text-center">
|
||||
<a href="{{ site.Home.Permalink }}">
|
||||
<img src="{{ site.Params.logo | absURL }}" alt="{{ site.Title }}" height="42" />
|
||||
<img src="{{ site.Params.logo | absURL }}" alt="{{ site.Title }}" height="42" loading="lazy" />
|
||||
</a>
|
||||
<br>
|
||||
<p>{{ site.Params.copyright | markdownify }}</p>
|
||||
<img src="/images/sponsors.jpg" alt="Sponsors : Nouvelle Aquitaine - UE" height="100" />
|
||||
<img src="/images/sponsors.jpg" alt="Sponsors : Nouvelle Aquitaine - UE" height="100" loading="lazy" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -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 }}
|
||||
|
@ -4,7 +4,7 @@
|
||||
<nav class="navbar navbar-expand-sm navbar-dark">
|
||||
<a class="navbar-brand p-0" href="{{ .Site.BaseURL | relLangURL }}">
|
||||
{{ if site.Params.logo }}
|
||||
<img class="lozad" data-src="{{ site.Params.logo | absURL }}" alt="{{ .Site.Title }}" height="42">
|
||||
<img src="{{ site.Params.logo | absURL }}" alt="{{ .Site.Title }}" height="42" loading="lazy">
|
||||
{{ else }}
|
||||
{{ site.Title }}
|
||||
{{ end }}
|
||||
|
@ -18,7 +18,7 @@
|
||||
<div class="row">
|
||||
{{ with .image }}
|
||||
<div class="col-lg-6 p-3 text-center">
|
||||
<img class="img-fluid lozad" data-src="{{ . | absURL }}" alt="image">
|
||||
<img class="img-fluid" src="{{ . | absURL }}" alt="image" loading="lazy">
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="col-lg-{{ with .image }}6{{else}}12{{ end }} p-3">
|
||||
|
@ -22,7 +22,7 @@
|
||||
<div class="team-member">
|
||||
<div class="member-photo">
|
||||
{{"<!-- member photo -->" | safeHTML}}
|
||||
<img class="img-fluid lozad" data-src="{{ .image_webp | absURL }}" onerror="this.onerror=null;this.src='{{ .image | absURL }}'" alt="{{ .name }}">
|
||||
<img class="img-fluid" src="{{ .image_webp | absURL }}" onerror="this.onerror=null;this.src='{{ .image | absURL }}'" alt="{{ .name }}" loading="lazy">
|
||||
|
||||
{{"<!-- member social profile -->" | safeHTML}}
|
||||
<div class="mask">
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
{{"<!-- client photo -->" | safeHTML}}
|
||||
<div class="client-thumb">
|
||||
<img class="img-fluid lozad" data-src="{{ .image_webp | absURL }}" onerror="this.onerror=null;this.src='{{ .image | absURL }}'" alt="{{ .name }}">
|
||||
<img class="img-fluid" src="{{ .image_webp | absURL }}" onerror="this.onerror=null;this.src='{{ .image | absURL }}'" alt="{{ .name }}" loading="lazy">
|
||||
</div>
|
||||
|
||||
{{"<!-- client info -->" | safeHTML}}
|
||||
|
Reference in New Issue
Block a user