Function isSupportWebp

  • Detect webp support.

    Usage:

    isSupportWebp().then(res => {
    console.log('isSupportWebp:', res);
    });

    Output:

    isSupportWebp: true
    

    Reference: Detect WEBP Support with JavaScript

    Returns Promise<boolean>