1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-17 18:00:12 +01:00
searxng/searx/templates/simple
Markus Heiser c416464949 [fix] lazy loading of <img> tags
Images should include dimension attributes.  Without `width` and `height`
specified, image dimensions are 0×0 pixels at first.  ...  In this case the
browser determines that all of them are visible to the user and decides to load
everything [1].

In CSS the `width` is set to a value and the `height` is unsed to scale the image
proportional in both dimensions.

[1] https://web.dev/browser-level-image-lazy-loading/#images-should-include-dimension-attributes
[2] https://caniuse.com/loading-lazy-attr

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-12-15 10:39:55 +01:00
..
filters [simple theme] rework select; add safesearch to search and replace / with › in article url 2021-11-21 21:38:00 +01:00
messages [fix] templates: remove unneeded escape \' of single quotation mark 2021-11-24 17:40:03 +01:00
result_templates [fix] lazy loading of <img> tags 2021-12-15 10:39:55 +01:00
404.html Drop Python 2 (2/n): templates 2020-09-10 10:39:04 +02:00
about.html [enh] add simple theme (WIP) 2017-08-06 16:04:21 +02:00
base.html [enh] add SVG favicon href="favicon.svg" type="image/svg+xml" 2021-11-29 20:36:31 +01:00
categories.html [simple theme] rework select; add safesearch to search and replace / with › in article url 2021-11-21 21:38:00 +01:00
icons.html [fix] delete trailing whitespace 2021-11-13 15:40:00 +01:00
index.html [simple theme] update to ion icons 5 and drop webfont 2021-11-13 10:42:07 +01:00
infobox.html [fix] simple-theme templates: polish HTML <img> elements 2021-11-25 12:07:57 +01:00
macros.html [fix] lazy loading of <img> tags 2021-12-15 10:39:55 +01:00
preferences.html [fix] templates: remove unneeded escape \' of single quotation mark 2021-11-24 17:40:03 +01:00
results.html [fix] query_in_title: add missing space in title 2021-11-29 11:08:21 +01:00
search.html [simple theme] rework select; add safesearch to search and replace / with › in article url 2021-11-21 21:38:00 +01:00
simple_search.html [simple theme] rework select; add safesearch to search and replace / with › in article url 2021-11-21 21:38:00 +01:00
simple.spec.txt [enh] add simple theme (WIP) 2017-08-06 16:04:21 +02:00
stats.html [simple theme] update to ion icons 5 and drop webfont 2021-11-13 10:42:07 +01:00