optimization – Load Webp Version of Image if it exists

Question

I am working on loading webp version of image if exists ,
I have prepared other steps currently from detecting images and whatever , but I can’t find how to replace image with the webp version ,
This is my essay

https://gist.github.com/ahmedch1/120ceb180a81c04ab1303fb17547fbed

Do anyone has an idea?
Thanks in advance

0
Ahmed C 3 weeks 2022-09-04T13:19:36-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse