Skip to content

Commit

Permalink
tweak and fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
chase-moskal committed May 21, 2019
1 parent 18429bb commit dcd9653
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ the global `window` object for you to use
you'll be familiar with this technique if you're producing your own application
bundles via browserify or webpack

you might want to include your own polyfills or use `webp-hero/dist-cjs/polyfills.js` if you want to support ie11
if you want to support ie11, you might want to include your own polyfills or use `webp-hero/dist-cjs/polyfills.js`

1. install the webp-hero npm package

Expand All @@ -76,9 +76,7 @@ you might want to include your own polyfills or use `webp-hero/dist-cjs/polyfill

if you're from the future, you'll probably want to use proper modules, either natively in the browser, or perhaps with optimization via rollup or what-have-you

this won't work in older browsers, but is great for bringing webp-support to safari and ie11

here's how you can use webp-hero like in the future, but today
this won't work in older browsers, which might even partly defeat the purpose of using webp-hero

1. use webp-hero on your page in one script tag

Expand Down

0 comments on commit dcd9653

Please sign in to comment.