summaryrefslogtreecommitdiff
path: root/searx/templates
diff options
context:
space:
mode:
authorAlexandre FLAMENT <alexandre.flament@hesge.ch>2022-05-18 07:27:42 +0000
committerAlexandre FLAMENT <alexandre.flament@hesge.ch>2022-05-18 07:29:31 +0000
commit0063427309b6fc0b202d7b63a01e8930bf5aab44 (patch)
treec8d5831e32670816f3c8d1f9ab29c4026d38ea56 /searx/templates
parentf814ac703b25640d28ab3a4a096f693808cde6db (diff)
downloadsearxng-0063427309b6fc0b202d7b63a01e8930bf5aab44.tar.gz
searxng-0063427309b6fc0b202d7b63a01e8930bf5aab44.zip
Template images.html: lazy by JS the full size image
Remove lazy loading by browser / width / height: JS is required to display this HTML fragment anyway. Simplify the HTML template.
Diffstat (limited to 'searx/templates')
-rw-r--r--searx/templates/simple/result_templates/images.html6
1 files changed, 1 insertions, 5 deletions
diff --git a/searx/templates/simple/result_templates/images.html b/searx/templates/simple/result_templates/images.html
index 902fd8b24..8aadbd204 100644
--- a/searx/templates/simple/result_templates/images.html
+++ b/searx/templates/simple/result_templates/images.html
@@ -9,11 +9,7 @@
<a class="result-detail-previous" href="#">{{ icon('chevron-left') }}</a>{{- "" -}}
<a class="result-detail-next" href="#">{{ icon('chevron-right') }}</a>{{- "" -}}
<a class="result-images-source" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %} href="{{ result.img_src }}">
- {%- if result.thumbnail_src -%}
- <img src="" data-src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}">
- {%- else -%}
- <img src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" loading="lazy" width="200" height="200">
- {%- endif -%}
+ <img src="" data-src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}">{{- "" -}}
</a>{{- "" -}}
<div class="result-images-labels">{{- "" -}}
<h4>{{ result.title|striptags }}</h4>{{- "" -}}