1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-13 00:10:09 +01:00
searxng/searx/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
..
__common__ [build] /static 2021-11-15 14:54:32 +01:00
oscar [fix] query_in_title: add missing space in title 2021-11-29 11:08:21 +01:00
simple [fix] lazy loading of <img> tags 2021-12-15 10:39:55 +01:00