|
1 | 1 | # Infinite Scroll |
2 | 2 |
|
3 | | -_Automatically add the next page_ |
| 3 | +_Automatically add next page_ |
| 4 | + |
| 5 | +See [infinite-scroll.com](https://infinite-scroll.com) for complete docs and demos. |
4 | 6 |
|
5 | 7 | ## Install |
6 | 8 |
|
7 | 9 | ### Download |
8 | 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 |
| 13 | + |
9 | 14 | ### CDN |
10 | 15 |
|
| 16 | +Link directly to Infinite Scroll files on [unpkg](https://unpkg.com). |
| 17 | + |
| 18 | +``` html |
| 19 | +<script src="https://unpkg.com/infinite-scroll@3/dist/infinite-scroll.pkgd.min.js"></script> |
| 20 | +<!-- or --> |
| 21 | +<script src="https://unpkg.com/infinite-scroll@3/dist/infinite-scroll.pkgd.js"></script> |
| 22 | +``` |
| 23 | + |
11 | 24 | ### Package managers |
12 | 25 |
|
| 26 | +npm: `npm install infinite-scroll` |
| 27 | + |
13 | 28 | Bower: `bower install infinite-scroll --save` |
14 | 29 |
|
| 30 | +Yarn: `yarn add infinite-scroll` |
| 31 | + |
15 | 32 | ## License |
16 | 33 |
|
17 | 34 | ### Commercial license |
18 | 35 |
|
19 | | -If you want to use Infinite Scroll to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary. |
| 36 | +If you want to use Infinite Scroll to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary. Purchase an Infinite Scroll Commercial License at [infinite-scroll.com](https://infinite-scroll.com/#commercial-license) |
20 | 37 |
|
21 | 38 | ### Open source license |
22 | 39 |
|
23 | 40 | If you are creating an open source application under a license compatible with the [GNU GPL license v3](https://www.gnu.org/licenses/gpl-3.0.html), you may use Infinite Scroll under the terms of the GPLv3. |
24 | 41 |
|
| 42 | +[Read more about Infinite Scroll's license](https://infinite-scroll.com/license.html). |
| 43 | + |
25 | 44 | ## Usage |
26 | 45 |
|
27 | 46 | Infinite Scroll works on a container element with its child item elements |
@@ -114,7 +133,7 @@ var infScroll = new InfiniteScroll( '.container', { |
114 | 133 |
|
115 | 134 | ## WordPress plugin |
116 | 135 |
|
117 | | -The Infinite Scroll WordPress plugin is being moved to another repo. |
| 136 | +The Infinite Scroll WordPress plugin will be in development in a separate repo. |
118 | 137 |
|
119 | 138 | --- |
120 | 139 |
|
|
0 commit comments