@@ -8,25 +8,23 @@ See [infinite-scroll.com](https://infinite-scroll.com) for complete docs and dem
8
8
9
9
### Download
10
10
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
13
13
14
14
### CDN
15
15
16
16
Link directly to Infinite Scroll files on [ unpkg] ( https://unpkg.com ) .
17
17
18
18
``` 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 >
20
20
<!-- 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 >
22
22
```
23
23
24
24
### Package managers
25
25
26
26
npm: ` npm install infinite-scroll `
27
27
28
- Bower: ` bower install infinite-scroll --save `
29
-
30
28
Yarn: ` yarn add infinite-scroll `
31
29
32
30
## License
@@ -57,7 +55,7 @@ Infinite Scroll works on a container element with its child item elements
57
55
### Options
58
56
59
57
``` js
60
- var infScroll = new InfiniteScroll ( ' .container' , {
58
+ let infScroll = new InfiniteScroll ( ' .container' , {
61
59
// defaults listed
62
60
63
61
path: undefined ,
@@ -137,9 +135,37 @@ var infScroll = new InfiniteScroll( '.container', {
137
135
})
138
136
```
139
137
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
141
153
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
+ ```
143
169
144
170
---
145
171
0 commit comments