WebP is an image format developed by Google that is a compressed image format that provides higher compression than JPEG and PNG. However, not all browsers support WebP, so it's important for web developers to check that their sites support this format.
This module checks the support for WebP images and assigns a class for the body. If the browser does not support it assigns the class webp if it does not support it assigns the class no-webp
npm i -D test-webp
import testWebp from 'test-webp';
testWebp();
Verifying WebP support is important for optimizing page load speed and improving the user experience.
- Author: WikiOur
- Author website: https://wikiour.com
- GitHub: https://github.com/wikiour
- YouTube: https://youtube.com/@wikiour
- Facebook: https://facebook.com/wikiour
- Instagram: https://instagram.com/wikiour
- Patreon: https://patreon.com/wikiour