Skip to content
This repository has been archived by the owner on Feb 12, 2020. It is now read-only.

Commit

Permalink
clarify browser support
Browse files Browse the repository at this point in the history
  • Loading branch information
joshstoik1 committed Jun 13, 2018
1 parent 7ed8f32 commit 59c8188
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ What Goes Around is a dual-purpose visibility and lazy-loading plugin for [Vue.j

## Installation

What Goes Around is compatible with all major modern web browsers and IE 11. Aside from [Vue.js](https://vuejs.org/), there are no third-party requirements.
Aside from [Vue.js](https://vuejs.org/), there are no third-party requirements.

What Goes Around is compatible with all major modern web browsers.

This plugin will also work with ~~the browser that just won't die~~ IE 11 if you include an [IntersectionObserver polyfill](https://github.com/w3c/IntersectionObserver/tree/master/polyfill).

This plugin does make use of some ES6 markup like `let` and `const`. If your project needs to support *old* browsers, you will need to first transpile `vue-what-goes-around.min.js` to ES5 with a tool like [Babel](https://babeljs.io/), then serve that copy to visitors.

To install it, simply drop a link to the script in your code:

Expand Down Expand Up @@ -78,6 +84,8 @@ If using this directive to lazy-load image sources for an `<img>` or `<picture>`

You're welcome. :)

**Note:** If lazy-loading the sources for a `<picture>` element, you should apply separate `v-lazy` directives to each `<source>` and the `<img>` tag, otherwise strange and wild things might happen.

### Classes

This directive applies two state classes to bound elements: `is:lazy` and `is:lazy-loaded`. The former is added during Vue setup, and is replaced with the latter as soon as lazy-loading has triggered.
Expand Down

0 comments on commit 59c8188

Please sign in to comment.