Skip to content

Conversation

sime
Copy link

@sime sime commented Dec 13, 2012

Basically her just getting the fetching of images loading out of the page load.

Thoughts?

@sebarmeli
Copy link
Owner

Why would you want to load all the images even if the image is not visible in the viewport or is hidden?

@sime
Copy link
Author

sime commented Dec 21, 2012

The intention is that I can load other JS, then download the images.

On Fri, Dec 21, 2012 at 4:57 PM, Sebastiano Armeli-Battana <
notifications@github.com> wrote:

Why would you want to load all the images even if the image is not visible
in the viewport or is hidden?


Reply to this email directly or view it on GitHubhttps://github.com//pull/34#issuecomment-11606634.

Simon Males

@bridgeport
Copy link

sebarmeli, one instance where this may be useful is a slideshow. For instance, if a slideshow has 3 images, the HTML source can show only the first slide's real image in the "src" tag, while the lazyload function performs a forced download of the other images. This way, the first image is shown to everyone, any other scripts in the footer executes, then JAIL executes along with the other scripts to force download the non-visible/hidden images so that they'll be primed in the browser cache.

Something like this should probably only be used selectively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants