detectSupport method

dynamic detectSupport()

Implementation

detectSupport() {
  // if ( ! this.isSupported ) {
  //   this.isSupported = new Promise( function ( resolve ) {
  //     var image = new Image();
  //     // Lossy test image. Support for lossy images doesn't guarantee support for all
  //     // WebP images, unfortunately.
  //     image.src = 'data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA';
  //     image.onload = image.onerror = function () {
  //       resolve( image.height == 1 );
  //     };
  //   } );
  // }
  // return this.isSupported;

  return true;
}