New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

yohoho.yofinity

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yohoho.yofinity

An infinite scroll jQuery plugin

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Yofinity Build Status

an infinite scroll jQuery plugin
npm version GitHub version

Demo page

Package manager

//bower
bower install --save yohoho.yofinity
//npm
npm install yohoho.yofinity

Install

<!-- In your <body> HTML tag -->

<a href="http://example.com/page/2" title="Next posts" rel="next">Loading...</a>
//in your main JS file
$('body').yofinity({
    buffer: 1000,
    navSelector: 'a[rel="next"]',
    success: function ($link, response){
        $link.before(response);
        $link.attr('href', '/page/2');
    },
    error: function ($link){
        $link.remove();
    }
});

Settings

OptionTypeDefaultDescription
bufferinteger1000Number of pixels to fire infinite scroll BEFORE the node element
contextobjectwindow-
debugbooleanfalseEnables the debug tools when it's needed
errorfunctionnullFunction called if script fires an error
loadingfunctionnullFunction called when script fires loading
navSelectorstring'a[rel="next"]'Define node element containing AJAX request through the href attribute
successfunctionnullFunction called when script fires success

Dependencies

jQuery 2.1.4

Made with ♥ by Achraf Chouk

Please, read LICENSE for more details.

Keywords

FAQs

Package last updated on 05 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc