changeset c6374ffd0d60 in www.tryton.org:default details: https://hg.tryton.org/www.tryton.org?cmd=changeset&node=c6374ffd0d60 description: Do not lazy load first slide diffstat:
templates/index.html | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diffs (16 lines): diff -r 8da8c19ab2c0 -r c6374ffd0d60 templates/index.html --- a/templates/index.html Sat Apr 09 11:40:10 2022 +0200 +++ b/templates/index.html Sat Apr 30 00:59:49 2022 +0200 @@ -2,9 +2,9 @@ {% set description = "TRYTON is business software, ideal for companies of any size, easy to use, complete and 100% Open Source." %} {% extends "layout.html" %} {% macro slide_img(i) %} -<noscript class="loading-lazy"> - <img class="d-block w-100 img-fluid" src="{{ url_for('static', filename='images/slide%i.jpg' % i) }}" sizes="100vw" srcset="{{ url_for('static', filename='images/slide%i.jpg' % i) }} 1920w, {{ url_for('static', filename='images/slide%i-800px.jpg' % i) }} 800w, {{ url_for('static', filename='images/slide%i-400px.jpg' % i) }} 400w" alt="" loading="lazy" style="background-color: {{ dominant_color('images/slide%i.jpg' % i) }};" width="1920" height="500"> -</noscript> +{% if i != 1 %}<noscript class="loading-lazy">{% endif %} + <img class="d-block w-100 img-fluid" src="{{ url_for('static', filename='images/slide%i.jpg' % i) }}" sizes="100vw" srcset="{{ url_for('static', filename='images/slide%i.jpg' % i) }} 1920w, {{ url_for('static', filename='images/slide%i-800px.jpg' % i) }} 800w, {{ url_for('static', filename='images/slide%i-400px.jpg' % i) }} 400w" alt="" {% if i != 1 %}loading="lazy"{% endif %} style="background-color: {{ dominant_color('images/slide%i.jpg' % i) }};" width="1920" height="500"> +{% if i != 1 %}</noscript>{% endif %} {% endmacro %} {% block head %} {{ super() }}