Detect webp support.
Usage:
isSupportWebp().then(res => { console.log('isSupportWebp:', res);}); Copy
isSupportWebp().then(res => { console.log('isSupportWebp:', res);});
Output:
isSupportWebp: true Copy
isSupportWebp: true
Reference: Detect WEBP Support with JavaScript
Detect webp support.
Usage:
Output:
Reference: Detect WEBP Support with JavaScript