Bricks Version : 1.3.2 Browser : Safari 14.1.1 OS : macOS URL : nah
It seems like the frontend is requesting each image twice: once the src and a second time the better sized srcset. Is this intended behavior? I guess it improves initial load time but also increases the total amount of assets requested.
Setup: One 600x400px image added (source size and actual display size). The 600x400px image is in the src, additional sizes like 1200x800px are in the srcset. The frontend first loads the 600x400px image, and a split second later the 1200x800px version.
Why does bricks.min.js load other images?
Lazyload is disabled, there should be no JS implied in image loading…
Thanks in advance!
EDIT: Looks like first image loaded is the right one according to srcset, then second image loaded is the size set in the builder, like if Bricks forced the selected size regardless of screen size.
Yan, right now I’m working on windows 11 / Chrome Version 101.0.4951.41. no more issues with double loading img’s. but I’ll have to check how things are looking on MacOS
imagesLoaded 4 is creating proxy images, which causes an additional image to load.
While the issue seem to have been fixed in imagesLoaded v5 I am currently checking to get rid of this library altogether. I’ll report back as soon as I have some news. But it seems doable …
Is this related to what I’m seeing here, the first image is pulling the thumbnail and the srcset seems to be calling in underneath the first lot. The other post loop images seem fine however, and the size to use was set to large, not the thumbnail or small ones.
The image being loaded twice issue has been fixed. The one shown in your video is not loading the image twice, but breaking the HTML somehow. Can you get in touch via email about this technical issue, and provide the URL where it occurs + some temporary admin login details, so we can have a look at the setup in the builder. Thank you so much!
Hi Tom, thank you. I actually made a thread for this so happy to continue that in there - I’ve shared the URL in there but no login details yet. What’s the best way to send that over on this?