@@ -8,25 +8,23 @@ See [infinite-scroll.com](https://infinite-scroll.com) for complete docs and dem
88
99### Download
1010
11- - [ infinite-scroll.pkgd.min.js] ( https://unpkg.com/infinite-scroll@3 /dist/infinite-scroll.pkgd.min.js ) minified, or
12- - [ infinite-scroll.pkgd.js] ( https://unpkg.com/infinite-scroll@3 /dist/infinite-scroll.pkgd.js ) un-minified
11+ - [ infinite-scroll.pkgd.min.js] ( https://unpkg.com/infinite-scroll@4 /dist/infinite-scroll.pkgd.min.js ) minified, or
12+ - [ infinite-scroll.pkgd.js] ( https://unpkg.com/infinite-scroll@4 /dist/infinite-scroll.pkgd.js ) un-minified
1313
1414### CDN
1515
1616Link directly to Infinite Scroll files on [ unpkg] ( https://unpkg.com ) .
1717
1818``` html
19- <script src =" https://unpkg.com/infinite-scroll@3 /dist/infinite-scroll.pkgd.min.js" ></script >
19+ <script src =" https://unpkg.com/infinite-scroll@4 /dist/infinite-scroll.pkgd.min.js" ></script >
2020<!-- or -->
21- <script src =" https://unpkg.com/infinite-scroll@3 /dist/infinite-scroll.pkgd.js" ></script >
21+ <script src =" https://unpkg.com/infinite-scroll@4 /dist/infinite-scroll.pkgd.js" ></script >
2222```
2323
2424### Package managers
2525
2626npm: ` npm install infinite-scroll `
2727
28- Bower: ` bower install infinite-scroll --save `
29-
3028Yarn: ` yarn add infinite-scroll `
3129
3230## License
@@ -57,7 +55,7 @@ Infinite Scroll works on a container element with its child item elements
5755### Options
5856
5957``` js
60- var infScroll = new InfiniteScroll ( ' .container' , {
58+ let infScroll = new InfiniteScroll ( ' .container' , {
6159 // defaults listed
6260
6361 path: undefined ,
@@ -137,9 +135,37 @@ var infScroll = new InfiniteScroll( '.container', {
137135})
138136```
139137
140- ## WordPress plugin
138+ ## Browser support
139+
140+ Infinite Scroll v4 supports Chrome 60+, Edge 79+, Firefox 55+, Safari 11+.
141+
142+ For IE10 and Android 4 support, try [ Infinite Scroll v3] ( https://v3.infinite-scroll.com/ ) .
143+
144+ ## Development
145+
146+ This package is developed with Node.js v14 and npm v6. Manage Node and npm version with [ nvm] ( https://github.com/nvm-sh/nvm ) .
147+
148+ ``` sh
149+ nvm use
150+ ```
151+
152+ Install dependencies
141153
142- The Infinite Scroll WordPress plugin will be in development in a separate repo.
154+ ``` sh
155+ npm install
156+ ```
157+
158+ Lint
159+
160+ ``` sh
161+ npm run lint
162+ ```
163+
164+ Run tests
165+
166+ ``` sh
167+ npm test
168+ ```
143169
144170---
145171
0 commit comments