Skip to content

Commit e6813dc

Browse files
committed
📝 README Browser support, Development, v4
1 parent 70996d4 commit e6813dc

File tree

1 file changed

+35
-9
lines changed

1 file changed

+35
-9
lines changed

README.md

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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

1616
Link 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

2626
npm: `npm install infinite-scroll`
2727

28-
Bower: `bower install infinite-scroll --save`
29-
3028
Yarn: `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

Comments
 (0)