DEV Community


Discussion on: Webp-ing your site: reduce image file size, increase site performance

gksander profile image
Grant Sander Author

I was just doing some work with WebP images (after having not touched them in awhile). Came back to this article, and this comment is very helpful - and what feels like the right way to do this! (Instead of using JS, let the platform handle the support detection.) In my case, I created a Vue component that wraps my picture > source + img tree accordingly - and works like a charm!

Forem Open with the Forem app