1.0.4 • Published 10 years ago

webp-detect v1.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

WebP Support

Bower version npm version

A pure javascript (no jQuery) lightweight library that checks browser WebP format support and adds 'webp' class to body if supported.

What is WebP? - Answer

Bower

bower install --save webp-support

npm

npm install --save webp-detect

Usage

Include the script in your HTML

<script src="bower_components/webp-support/webp.min.js"></script>

or add to your bundle:

require('webp-sdetect');

If browser support webp format it'll add the webp class to body tag.

Also you can import ES2015 version in your scripts.

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago