Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7842003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:13:16+00:00 2026-06-02T16:13:16+00:00

if i scrolling the page,jQuery Infinite Scroll’s event will be fires twice of three

  • 0

if i scrolling the page,jQuery Infinite Scroll’s event will be fires twice of three times.how can i aviod this happen? when the next page is loading,the jQuery Infinite Scroll’s event can’t be fires thanks.

$(function(){
    var speed = 1000;
    var container = $('#sharelist');
    container.imagesLoaded(function(){
      container.masonry({
        itemSelector: '.share',
        singleMode: true,
        columnWidth: 242,
        isFitWidth: true,
        animate: true,
        animationOptions: {
            duration: speed,
            queue: false
        }
      });
    });
    container.infinitescroll({
      navSelector  : '.page',     
      nextSelector : 'a.next',
      itemSelector : 'div[class=share]',
      loading: {
          finishedMsg: '报告,后面没有了哦.',
          img: 'image/icon_waiting.gif',
          msgText:'加载中'
        }
      },
      function( newElements ) {
        var newElems = $(newElements).css({ opacity: 0 });
        newElems.imagesLoaded(function(){
          newElems.animate({ opacity: 1 });
          container.masonry( 'appended', newElems, true );
          $('.namecard').floatUserInfo();
        });
      }
    );
    $("img").lazyload({
        placeholder : "image/grey.gif",
        effect      : "fadeIn"
     });
  });
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T16:13:17+00:00Added an answer on June 2, 2026 at 4:13 pm

    There’s a lot of existing literature on throttling resize events, and you have essentially the same concern here. Typical solutions involve scheduling an asynchronous handler, and then only allowing one to be pending at a time. The most robust(?) way being to cancel and replace the old handler.

    For example:

    http://benalman.com/code/projects/jquery-throttle-debounce/examples/throttle/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the infinite scroll plugin http://www.infinite-scroll.com/infinite-scroll-jquery-plugin/ to load page content. I have
I have a page using JQuery and I've implemented infinite scrolling on a div.
I am following this tutorial: https://github.com/amatsuda/kaminari/wiki/How-To:-Create-Infinite-Scrolling-with-jQuery So far everything works great, but I am
jquery waypoints fires a callback, when a object appears into viewport with scrolling. This
Can anyone show me how to add smooth scrolling (to page top) to this
I'm trying to create a animation by scrolling the page, something like this: $(function()
I have a web page with infinite scrolling. I always want to have the
I have a vertically scrolling uiscrollview - imagine an 'about this app' page of
this is the situation: I need horizontal scrolling, and table views inside every page.
background i am actually creating an infinite page scroller in jQuery for my tumblr.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.