Srcset and Responsiveness not working (image parallax)
-
Hello,
I came across this plugin via a reference in the “Lazy Blocks” plugin, which I also like very much.
In AWB I was especially attracted by the note “srcset supported (i.e. Google love it)”.
During the first tests, I noticed that the img tag is generated with the srcset attribute, but the srcset has no effect. The full-size image is always loaded and displayed. According to chrome-developer-tools -> network, the image requested via srcset is loaded first and then additionally the full-size image (initiator: awb.min.js?ver=1.12.3:2). The behavior only changes when the parallax scroll speed is set to 1. Then the srcset works as expected, but there is no parallax scrolling effect.
In the Gutenberg editor, the setting “image size” (e.g. medium or large) displays the correct image size correctly in the editor, but is apparently ignored in the frontend and the full-size image is additionally loaded and displayed.
I have tested this by manually adding a label to all generated images indicating the size. I observed the behavior via the network tab in the chrome developer tools.
The additional registered image sizes (awb-….) are not usable at the moment and take up unnecessary space on shared hosts (remove_image_size?).
Best regards
Klaus
WordPress: 6.6.1
Theme: Kadence (child)
Advanced WordPress Backgrounds: 1.12.3
PHP: 8.1.10
- You must be logged in to reply to this topic.