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 9043565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T10:45:35+00:00 2026-06-16T10:45:35+00:00

Is there any chance of getting this two plugins to work together? Right now

  • 0

Is there any chance of getting this two plugins to work together?
Right now if I use iscroll in a div with images, Lazy load won’t detect when the images should be visible.

Thanks.

EDIT:

As said in one of the comments, I have tried to apply lazyload on scroll like this:

onScrollMove: function () {
    $("img").lazyload();
    $('img').on('load',function(){myScroll.refresh();});
}

To work correctly I guess I would have to apply the same to onBeforeScrollEnd:

onBeforeScrollEnd: function () {
    $("img").lazyload();
    $('img').on('load',function(){myScroll.refresh();});
}

But is this solution affecting performance (as it is continuosly applying lazyload to all images and refreshing when they are loaded to readapt to the loaded image width/height)?
I am really concerned about performance here as I will have a container scroller with several (let’s say 30) scrollers inside all of theme with images.
What else can I do?

EDIT 2:

This is what I have so far that I think works almost good:

onScrollMove: function() {
    $('#my_container img').lazyload({
        container: $('#my_container'),
        threshold: 200
    }).on('load', function() {
        myScroll.refresh();
    });​
}

But the problem with this solution is that when myScroll refreshes the first time, lazyload loads all the images..

Here is a fiddle: http://jsfiddle.net/U3gYS/

and it also has the problem that if the first image is viewable from the beggining, lazyload won’t load that image. http://jsfiddle.net/U3gYS/1/

EDIT 3:

http://jsfiddle.net/pdakD/ I almost have it, please some help.
In the new fiddle, the problems are:

  1. onBeforeScrollEnd doesn’t seem to work. If I include in it a console.log(‘something’), it looks to me as it is firing when the scroll Starts.

  2. The initial #container has a height which is the span+first img. To make it look better, I added a padding-bottom (not too big) and remove it when the last image has finally loaded…What else can I do?

EDIT 4:

This looks better: http://jsfiddle.net/pdakD/1/ .onBeforeScrollEnd stills looks bad to me.
I also have this option: http://jsfiddle.net/pdakD/1/ which applies

checkDOMChanges:true

But as I have multiple iscrollers and ajax data, etc, I don’t think is a good idea.

SOLUTION:
Here is the jfiddle of the solution proposed by Michael Alexander Freund.
http://jsfiddle.net/pdakD/11/
It works but gets stuck in the bottom if you “scroll” fast.

  • 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-16T10:45:36+00:00Added an answer on June 16, 2026 at 10:45 am

    Today i had the same issue and i figured out that the scroll event is not triggered, which lazyload is listening to. So the only thing you have to do, is triggering the scroll event for your scroll container manually. I used the onScrollEnd callback from iScroll and did a

    onScrollEnd: function () {
        $('div.scroll').trigger('scroll');
    }
    

    while $('div.scroll') is the container i used with iScroll

    var scroll, container;
    
    container = $('div.scroll');
    scroll    = new iScroll(container.get(0), {
        bounce: false,
        onScrollEnd: function () {
            container.trigger('scroll');
        }
    });
    

    and this is what the lazyload method looks like

    $('img.lazyload').lazyload({
        effect: 'fadeIn',
        container: $('div.scroll')
    });
    

    Cheers!

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

Sidebar

Related Questions

Is there any chance that a SHA-1 hash can be purely numeric, or does
By any chance, is there any easy way to set a default MasterView for
Do you know how OpenUDID generate unique device ID? Is there any chance that
Is there by any chance a way to set shipping cost by state in
Is there any way to use Dapper.NET with stored procs that return multiple result
I've written a small library in C#. In this library there are two classes
I have a codeigniter 2.0.2 project that keeps getting hacked. There are two main
There are two major ways in getting components in ExtJS 4. By a global
There are two places where I have observed this. Both are AJAX calls which
Is there any possibility to change the text-color of some parts in a textarea

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.