1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-14 00:30:15 +01:00
searxng/searx/templates/simple/result_templates
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
..
code.html [fix] simple theme: fix open in a new tab preference 2021-11-05 09:36:19 +01:00
default.html [simple template] format default string 'italic' 2021-11-23 15:28:08 +01:00
images.html [fix] lazy loading of <img> tags 2021-12-15 10:39:55 +01:00
key-value.html [fix] correct kv template formatting and remove internal data 2021-06-01 10:53:37 +02:00
map.html [simple theme] update to ion icons 5 and drop webfont 2021-11-13 10:42:07 +01:00
torrent.html [simple theme] update to ion icons 5 and drop webfont 2021-11-13 10:42:07 +01:00
videos.html fix PR #535 2021-11-23 18:59:50 +01:00