add dimensions to img tag to avoid reflow, add loading: lazy to avoid blocking

This commit is contained in:
simon lehericey 2020-10-10 21:33:58 +02:00
parent b3a4192337
commit 3c0c829a29
2 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@
- else
- root_profile_link, root_profile_libelle = root_path_info_for_profile(nav_bar_profile)
= link_to root_profile_link, class: 'header-logo justify-center', title: root_profile_libelle do
= image_tag 'marianne.svg', alt: 'Liberté, égalité, fraternité', width: '65'
= image_tag 'marianne.svg', alt: 'Liberté, égalité, fraternité', width: '65', height: 56, loading: 'lazy'
%span.big.site-title>
= APPLICATION_NAME
%span.small.site-title>