webp-avif-support
Exports a function to check if browser support AVIF and WebP.
Classes avif
, webp
, notavif
and notwebp
will be added to the html root element.
Usage
import checkImageSupport from './imgsupport.js'
checkImageSupport()
Exports a function to check if browser support AVIF and WebP.
Classes avif
, webp
, notavif
and notwebp
will be added to the html root element.
import checkImageSupport from './imgsupport.js'
checkImageSupport()
npm i webp-avif-support
0
1.1.0
MIT
3.64 kB
7