Giter Site home page Giter Site logo

Comments (5)

desandro avatar desandro commented on June 12, 2024

Interesting idea. but imagesLoaded is designed to be triggered after a group of images are loaded, not just for a single image. Does this fit with your request?

from imagesloaded.

Zxurian avatar Zxurian commented on June 12, 2024

hm.. sort of. I was referred to your plugin after searching for a
reliable cross-browser way to detect once an image is done being
transferred to the client (large background picture) so I could fade it
in.

then on retrospect, if the same image is being loaded from cache, I
wanted it to appear at the same time as the document instead of fading
in once transferred.

is there a more surgical plugin that you know of that would work for a
single image instead of a group like this plugin is built for?

On Monday, October 10, 2011 21:56:09, David DeSandro wrote:

Interesting idea. but imagesLoaded is designed to be triggered after a group of images are loaded, not just for a single image. Does this fit with your request?

from imagesloaded.

desandro avatar desandro commented on June 12, 2024

Sorry, I am not aware of other solutions like this plugin. I'm afraid your request falls outside the specs of this project. Closing this issue.

from imagesloaded.

ryrych avatar ryrych commented on June 12, 2024

There is no need to have two callbacs. When an image is loaded it trigger ‘success’ (or whatever – I don’t remember now this name). I did it this way. That is, I use code from desandro’s project to load one image. And it works.

from imagesloaded.

Zxurian avatar Zxurian commented on June 12, 2024

Thank you for the reply, but I don't want to perform an action once an
image is loaded, ie. "success", I want to perform diffferent actions
based on whether the image is loaded from cache or pulled from web.
That is why, as David said, it's outside the spec of this plugin.

On Friday, October 14, 2011 14:11:30, Wojciech Ryrych wrote:

There is no need to have two callbacs. When an image is loaded it trigger ‘success’ (or whatever – I don’t remember now this name). I did it this way. That is, I use code from desandro’s project to load one image. And it works.

from imagesloaded.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.