WebP Fallback for Inline Background Image in Style Attribute

Here’s couple of wild ideas which you could try, if you’re feeling adventurous. 1) Write some conditional logic with $_SERVER to detect if the user’s browser is the right type and high enough version, that would probably support the WebP format. Try using $_SERVER [‘HTTP_USER_AGENT’] and see also https://stackoverflow.com/questions/13252603/how-does-http-user-agent-work 2) Add the WebP and fallback … Read more