Sha256: 52c3d2df72859a52cd2dc6e5c0865ce764eb6bf05e1da97167e926edf8677aa4

Contents?: true

Size: 473 Bytes

Versions: 144

Compression:

Stored size: 473 Bytes

Contents

// code.google.com/speed/webp/
// by rich bradshaw, ryan seddon, and paul irish


// This test is asynchronous. Watch out.

(function(){

  var image = new Image();

  image.onerror = function() {
      Modernizr.addTest('webp', false);
  };  
  image.onload = function() {
      Modernizr.addTest('webp', function() { return image.width == 1; });
  };

  image.src = 'data:image/webp;base64,UklGRiwAAABXRUJQVlA4ICAAAAAUAgCdASoBAAEAL/3+/3+CAB/AAAFzrNsAAP5QAAAAAA==';

}());

Version data entries

144 entries across 144 versions & 7 rubygems

Version Path
rubyneat_dashboard-0.4.0.alpha.4.pre.1 bower_components/modernizr/feature-detects/img-webp.js
rubyneat_dashboard-0.4.0.alpha.4 bower_components/modernizr/feature-detects/img-webp.js
TokiCLI-0.2.1 lib/TokiServer/bower_components/modernizr/feature-detects/img-webp.js
TokiCLI-0.2.0 lib/TokiServer/bower_components/modernizr/feature-detects/img-webp.js