fix(demande): pj thumbnail with loading="lazy"

This commit is contained in:
Colin Darie 2024-04-22 22:13:50 +02:00
parent 388470f186
commit 5348543dbe
No known key found for this signature in database
GPG key ID: 8C76CADD40253590
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@
- elsif blob.content_type.in?(AUTHORIZED_IMAGE_TYPES)
= link_to image_url(blob.url), title: "#{champ.libelle} -- #{blob.filename}", data: { src: blob.url }, class: 'gallery-link' do
.thumbnail
= image_tag(blob.url)
= image_tag(blob.url, loading: :lazy)
.fr-btn.fr-btn--tertiary.fr-btn--icon-left.fr-icon-eye{ role: :button }
Visualiser
.champ-libelle

View file

@ -19,6 +19,6 @@
- elsif blob.content_type.in?(AUTHORIZED_IMAGE_TYPES)
= link_to image_url(blob.url), title: "#{champ.libelle} -- #{blob.filename}", data: { src: blob.url }, class: 'gallery-link' do
.thumbnail
= image_tag(blob.url)
= image_tag(blob.url, loading: :lazy)
.fr-btn.fr-btn--tertiary.fr-btn--icon-left.fr-icon-eye{ role: :button }
= 'Visualiser'