Using <picture> Tag with X Theme for webp and jpg fallback

Hello,

I can’t find something about that in your manual. Is it possible to use the < picture > Tag with X to place compressed webp images for a maximum page load speed? Because not every browser and OS supports webp, the picture Tag uses the fallback option to jpg - I think that’s a good thing. Of course, I can choose the code Element of cornerstone to place the picture tag manually – but is there a more comfortable solution in X?

Thanks for your help!

Hi @Sedu,

Thanks for reaching out.
Can you please elaborate on what exactly you are expecting, so we can help you with this?

Thanks

I prepare a new project with X with an existing license. I want to create a web page with the tag to implement webp images with a fallback option to jpg files. Is this possible with cornerstone? My goal is a page with shortest possible loading time.

Hi @Sedu,

Regretfully, there is no such option to show the webp images currently. I will create a feature request on this, so it might be taken into account in the future.

Thanks

Hi @Sedu,

I wanted to follow up on this after seeing the feature request come in. Regretfully this isn’t something we’ll be able to work out in the near future. We rely on the WordPress media library for referencing images and will be using their implementation of srcset in one of our upcoming major releases. This means that WordPress will be responsibly for the src URLs. If Wordpress introduces a way to do webp natively we will be able to support it.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.