From ebc1e96c766e902bb800c2cc216a49da77ba2dd9 Mon Sep 17 00:00:00 2001 From: Richard Thier Date: Fri, 6 Mar 2020 17:05:49 +0100 Subject: [PATCH] QUICKFIX: Exchanged 2k and 450p urls in full-image covers as they are the most critical on the fast-path for me now. The current version loads BOTH urls ALWAYS which is awful and not optimized (see network inspector in FF / PM); A real solution would be to use media queries here and only load the appropriate image size according to the display width and such data. That way things could go fast on mobile and on old machines (like my laptop) while still getting 2k plus resolution images for high-end users. Currently I have to use jpg files and it is tolerable this way, but could be made faster as I see on network analysis. --- prosopopee/themes/exposure/templates/sections/full-picture.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prosopopee/themes/exposure/templates/sections/full-picture.html b/prosopopee/themes/exposure/templates/sections/full-picture.html index 29be913..221300c 100644 --- a/prosopopee/themes/exposure/templates/sections/full-picture.html +++ b/prosopopee/themes/exposure/templates/sections/full-picture.html @@ -27,7 +27,7 @@ {% else %} {% set image = Image(section.image) %} {{ image.copy() }} -
+
{% if section.text %}