kevinfrom / imgsupport-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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()

About


Languages

Language:JavaScript 54.2%Language:TypeScript 45.8%