DEV Community

loading...

Discussion on: Understanding WebP

jmau111 profile image
Julien Maury Author • Edited

I've been playing with this recently, I recommend using modernizr to detect support, it adds necessary classes you can use to apply use nextgen and fallback formats in css.

In my case, it adds a webp class to the <html> tag. If webp is not supported then a no-webp is added. Really handy.

Forem Open with the Forem app