npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

auto_load_jquery_plugin

v1.0.5

Published

**Auto Loader Jquery Plugin**

Readme

Auto Loader Jquery Plugin

If you need auto ajax load function when scrolling end, this plugin can help you to achieve it.

Default Settings

        scrollContainer: $(document), //optional
        loader : null,                //optional
        bottomOffset : 100,           //optional
        autoScrollPx : 200,           //optional
        autoScrollSpeed: 1000,        //optional
        ajax : {
            url : null,                  //require
            method : "GET",             //optional
            data : null,                 //optional
            dataType : "html",          //optional
            onSuccess : null,            //require
        },
        responsive : null,            //optional

Example 1 : Let say we are working on Product listing. We will have container for product list. we can use auto load on that container as follow.

$(".data_container").autoload({
   ajax : {
            url : "put your link to call ajax data",
            onSuccess : function(response){
             $(".data_container").append(response);
            }
        },
  });
  //when doing ajax call, page number will added by plugin.
  //page number will also increase after each call
  //plugin assume page 1 data is already load and will start with page 2 on first ajax call.

To use loading spinner

$(".data_container").autoload({
  loader :  $(".loader"),  //put loader element here, plugin will handle for show / hide action.
  ajax : {
          url : "put your link to call ajax data",
          onSuccess : function(response){
           $(".data_container").append(response);
          }
      },
});

It will auto load next page data when we reach scroll end. but it is not real end point. Default setting for offset point from bottom is 100. We can set our own number. This mean that data loading will happen when we reach the 100px above the scroll end point.

$(".data_container").autoload({
 loader :  $(".loader"),  //put loader element here, plugin will handle for show / hide action.
 bottomOffset : 200,      //no need to add px
 ajax : {
         url : "put your link to call ajax data",
         onSuccess : function(response){
          $(".data_container").append(response);
         }
     },
});

When you test plugin, you can see scrolling animation when data loading is complete. You may need to customize scrolling length depend on your project.

$(".data_container").autoload({
 loader :  $(".loader"),  //put loader element here, plugin will handle for show / hide action.
 autoScrollPx : 500,      //when loading finish, scroll up to 500px
 autoScrollSpeed : 500,   //can adjust the scrolling speed. (milisecond)
 ajax : {
         url : "put your link to call ajax data",
         onSuccess : function(response){
          $(".data_container").append(response);
         }
     },
});

Sometime you many need to set button offset and scrolling length separately for different device. example : 100 for pc and 200 for mobile plugin can support for responsive breakpoint to set

$(".data_container").autoload({
    loader :  $(".loader"),  //put loader element here, plugin will handle for show / hide action.
    bottomOffset : 200,      //no need to add px
    responsive : [
      {
        breakpoint : 768,   //setting will effect when device width <= 768px
        bottomOffset : 100, //(optional)if need to overwrite the bottomOffset value on this screen size
        autoScrollPx : 500, //(optional)if need to overwrite the autoScrollPx value on this screen size
        ajax_url : "put your link",//(optional)if need to overwrite the ajax url value on this screen size
        ajax_data : {pagesize: 5}, //(optional)if need to overwrite the ajax url value on this screen size
		  }
    ]
    ajax : {
            url : "put your link to call ajax data",
            onSuccess : function(response){
             $(".data_container").append(response);
            }
        },
  });

ScrollingContainer

In most case, Scrollingcontainer will be document itself because we want to load data on document scrolling event.Sometime, you may want to use a DIV tag as an scrollingcontainer to control its content.