I'm wondering what approach I should use for adding a detection for WebP image format support. I'm thinking that a simple series of internal checks on browser types and minimum version numbers would be the way to go.
Here's a chart of which browser versions support the WebP image format:
https://caniuse.com/#feat=webp
Any suggestions? I'd be happy to write some code for a webp() subroutine that behaves like the mobile() subroutine.
Thanks.
I'm wondering what approach I should use for adding a detection for WebP image format support. I'm thinking that a simple series of internal checks on browser types and minimum version numbers would be the way to go.
Here's a chart of which browser versions support the WebP image format:
https://caniuse.com/#feat=webp
Any suggestions? I'd be happy to write some code for a webp() subroutine that behaves like the mobile() subroutine.
Thanks.