Closed hvelarde closed 8 years ago
We could also use the actual image but in low quality by just adding /mini
at the end of its URL.
no, by doing that we will duplicate the number of image requests to the backend and increase the page size also; the gray square is fine, I think is a de facto web standard.
instead of doing that we have to implement support for responsive images.
That's true (I proposed it as it would be more beautiful if you have a very long list of images to display in the same page, but I agree it would be less performant).
there is an additional issue: using /mini
at the end of the URL will void caching on reverse proxies.
in fact, lazysizes does a pretty good job uploading images in advance; most of the time you don't see the gray square.
in src/collective/lazysizes/transform.py we should use something like this:
this way we save one request per page.