I have a problem with img-src and lazy loading
-
Hello!
For context, I have installed Smush on my WordPress site. When I visit it in incognito mode or NOT logged it looks ok, but the problem comes when admins are logged in. Image header and other images on the site look different or disappear.
For instance, this looks ok on incognito mode:
<img loading="lazy" decoding="async" width="600" height="400" data-src="https://oxalis.io/wp-content/uploads/2019/01/1.jpg" alt="" class="wp-image-20 lazyloaded" data-srcset="https://oxalis.io/wp-content/uploads/2019/01/1.jpg?600w,?https://oxalis.io/wp-content/uploads/2019/01/1-300x200.jpg?300w" data-sizes="(max-width: 600px) 100vw, 600px" src="https://oxalis.io/wp-content/uploads/2019/01/1.jpg" style="--smush-placeholder-width: 600px; --smush-placeholder-aspect-ratio: 600/400;" sizes="(max-width: 600px) 100vw, 600px" srcset="https://oxalis.io/wp-content/uploads/2019/01/1.jpg?600w,?https://oxalis.io/wp-content/uploads/2019/01/1-300x200.jpg?300w">
but once logged in this is the code for that same part:
<img loading="lazy" decoding="async" width="600" height="400" data-src="https://oxalis.io/wp-content/uploads/2019/01/1.jpg" alt="" class="wp-image-20 lazyload" data-srcset="https://oxalis.io/wp-content/uploads/2019/01/1.jpg 600w, https://oxalis.io/wp-content/uploads/2019/01/1-300x200.jpg 300w" data-sizes="(max-width: 600px) 100vw, 600px" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" style="--smush-placeholder-width: 600px; --smush-placeholder-aspect-ratio: 600/400;">
Is there something I can make to fix this?
My problem is kind of similar to this ticket when mentioning the src=
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.