Hi Calin,
In addition to the previously reported bug with the Webp option in theme panel, I have found another bug.
Environment:
1. Theme version: 12.6.6
2. Webp format is generated by Ewww Image Optimizer as per your guide. – All images become Webp and all are lazyloaded.
4. For CWV / speed, we must disable lazyload for the first image (in the first flex or any block / logo is text). For this we use define( ‘EIO_LAZY_FOLD’, 1 ); in wp-config as per Ewww’s guide – under Exclude Images header.
5. The result is that the first image on the page converts to Web but is not lazyload – so this is correct. The Theme’s option Use Webp Format is meant to show this first image in Webp, because it exists on the server.
Issue:
The theme stops using the webp file for the first image when any caching system is on. This includes the “Cache block results” option on the block, WP super cache as per your guide.
How to test:
1. Make sure you have caching enabled – WP super cache as per your guide. Also can enable “Cache block results” on the actual block.
2. If you are logged-in, you will see a webp. If you are logged out – the theme will also be showing webp for some time, but a little later – once the cache is generated – the theme will start showing jpg (despite having webp on the server).
– I have tested this on various websites and demo sites. On the dev sites that do not have caching, there is no problems.
(!) As previously discussed, this post is only for Calin.
Other TD team members, please do not respond.
Thank you.
Hi,
I did a lot of tests for this issue, but unfortunately I was only able to recreate this situation once, so I can’t give you a solution now, I’m sorry.
We have put this situation on our list of bugs and it will be checked in more detail and once we detect where this situation comes from (why the webp format is no longer applied when a cache is used) our developers will come up with a solution to solve it .
Thank you for taking the time to test and inform us about this situation!
Hi Calin,
In 12.6.7 your devs fixed this issue with webp on loop blocks, which is good.
But this issue with Webp and Caching is not fixed.
– You previously said you were only able to replicate it once.
To easily replicate it – logout of your dev site and in a few minutes inspect the html with image that is meant to load webp. It will ignore webp and show jpg/png or whatever is used..
Also if you run it through https://pagespeed.web.dev/ the error “Serve images in next-gen formats” will be reported as the url of the shown image is not webp.
Thank you.
Hi Alex,
I just received a reply from a developer, he stated that this most likely happens due to the fact that the disable lazyload option is used on the first image. What he suggested is to check if the situation happens only for that block or also for the rest and if it also happens on the mobile or only on the desktop, and if the situation is only ep that block then 99% is because of that option.
Thank you!
@alex I have read your topics with interest, where you report issues, but you also come to request certain custom things.. okay, all good, but have you extended the support or are you just waiting to receive everything for free? I would like a system to be implemented so that only those of us who extend support have access to the forum