detectSupport method
Implementation
bool detectSupport() {
// if ( ! this.isSupported ) {
// this.isSupported = Promise( function ( resolve ) {
// final image = 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;
}