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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:54:27+00:00 2026-06-01T14:54:27+00:00

I’m working on a page that displays several hundred images at once. I’m using

  • 0

I’m working on a page that displays several hundred images at once. I’m using the Lazy Load plugin to allow the page to load quickly. Everything is working perfectly however I’ve added a jQuery UI Slider to allow users to enlarge/shrink images by dragging a handle. If users shrink images then it is possible that images that used to be below the fold have now been moved into the visible area. Since scrolling has not occured, the images are not loaded.

I added an event to trigger loading when the resize handle is dragged but it is causing ALL images to load and not just those that have entered into the viewable area.

The code is pretty straightforward:

Here is the code to wire up the plugin.

$("#pplImages.lazy").lazyload({event : "LoadVisibleImages"});

function LoadVisibleImages() {
    $("#pplImages.lazy").trigger("LoadVisibleImages");
}

And here is the code that triggers the loading from the Slider

$( "#slider" ).slider({
    min: 25,
    max: 125,
    value: 100,
    slide: function( event, ui ) {
    ResizeImages(ui.value);
}
}).slider().bind({
    slidestop   : function(event,ui) {LoadVisibleImages();}
});

What I’m looking for is a way to load ONLY those images that are now viewable and not ALL images on the page.

Can anyone see what I’m doing wrong?

  • 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-01T14:54:28+00:00Added an answer on June 1, 2026 at 2:54 pm

    This could be an issue with the plugin. There is a lot of discussion on the interwebs about this plugin not working in modern browsers.

    Take a look at JavaScript Asynchronous Image Loader (JAIL). The author wrote it as a direct response to this problem: Reasons why I wrote the plugin Jquery Asynchronous Image Loader (JAIL).

    This example shows an li triggering the image loading. You can probably modify your code to do the same.

    Try this out:

    1. Add a hidden div to your page with the id “trigger”
    2. Set your ResizeImages function to simulate a click on the trigger DOM object
    3. Change your lazy load code to use the JAIL plugin and set it to load images whenever the trigger object is clicked.

    Your code can look something like this:

    JavaScript

    $("#pplImages.lazy").jail({
        selector:'#trigger', 
        event: 'click'
    });
    
    $( "#slider" ).slider({
        min: 25,
        max: 125,
        value: 100,
        slide: function( event, ui ) {
        ResizeImages(ui.value);
    }
    }).slider().bind({
        slidestop   : function(event,ui) { 
            $('#trigger').click(); //Notice this simulated click event
        }
    });
    

    HTML (just add this to your page)

    <div id="trigger" class="hidden"></div>
    

    You’ll have to tinker around to make this work perfectly for you but the above should get you started.

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am using JSon response to parse title,date content and thumbnail images and place
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm making a simple page using Google Maps API 3. My first. One marker
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I am using jsonparser to parse data and images obtained from json response. When
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
I've got a string that has curly quotes in it. I'd like to replace
I have a small JavaScript validation script that validates inputs based on Regex. I

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.