infinite-ajax-scroll

Turn your existing pagination into infinite scrolling pages with ease

Github星跟踪图

Turn your existing pagination into infinite scrolling pages with ease.

  • SEO friendly ?
  • Doesn't break browsers back button ?
  • Highly customizable ✨

More features, documentation and examples available at: https://docs.infiniteajaxscroll.com/

Build Status npm

Installation

Use Infinite Ajax Scroll via CDN

Get up and running in no time by linking directly to Infinite Ajax Scroll on unpkg.

<script src="https://unpkg.com/@webcreate/infinite-ajax-scroll@3/dist/infinite-ajax-scroll.min.js"></script>

Place this code right before the </body> tag on each template or page that you want to use infinite scroll on.

Manage as a package

Are you using NPM in your projects? You can install and update our package easily.

$ npm install --save @webcreate/infinite-ajax-scroll

Usage

Infinite Ajax Scroll works on a container with item elements which get appended. A next link is used to determine the next url.

<div class="container">
    <div class="item">...</div>
    <div class="item">...</div>
    <div class="item">...</div>
    ...
</div>

<div class="pagination">
    <a href="page2.html" class="next">Next</a>
</div>

Now you can configure Infinite Ajax Scroll:

// import if you use the NPM package
import InfiniteAjaxScroll from '@webcreate/infinite-ajax-scroll';

let ias = new InfiniteAjaxScroll('.container', {
  item: '.item',
  next: '.next',
  pagination: '.pagination'
});

Full documentation can be found at https://docs.infiniteajaxscroll.com

Licensing

Infinite Ajax Scroll is dual licensed:

  1. Under the Free Software Foundation’s GNU AGPL v.3.0; or
  2. Under an Infinite Ajax Scroll Commercial License

Buying a commercial license is mandatory as soon as you develop commercial activities distributing the Infinite Ajax Scroll software inside your product or deploying it on a network without disclosing the source code of your own applications under the AGPL license.

See https://infiniteajaxscroll.com/licenses/ for more details.

主要指标

概览
名称与所有者webcreate/infinite-ajax-scroll
主编程语言JavaScript
编程语言JavaScript (语言数: 2)
平台
许可证Other
所有者活动
创建于2011-06-02 22:01:41
推送于2023-11-24 12:26:47
最后一次提交2023-04-10 12:59:39
发布数29
最新版本名称3.1.0 (发布于 )
第一版名称v0.1.0 (发布于 2011-06-05 12:37:10)
用户参与
星数899
关注者数54
派生数343
提交数1.2k
已启用问题?
问题数308
打开的问题数8
拉请求数375
打开的拉请求数5
关闭的拉请求数197
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?