Comments (5)
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.
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.
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.
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.
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)
- It doesn't work with <picture> tag? HOT 1
- Including the imagesloaded.js library causes <source srcset> images to load two versions of the image, increasing bandwidth by ~4x HOT 2
- .bind deprecated HOT 1
- V3 site page not found HOT 2
- desandro.com has expired HOT 1
- Not working with only srcset HOT 5
- MIT License Page HOT 1
- Timing a page loader only to visible images using imagesLoaded [SOLVED] :) HOT 1
- Thanks for your library! HOT 2
- wp + masonry + imagesloaded lazyload = gap between posts HOT 2
- Multiple file type download issue with imagesLoaded, Barba and Swiper
- Some issues -
- Imagesloaded v5 triggers loading of largest image when using srcset HOT 5
- Downloads jpeg image when using picture element in browser that supports modern formats
- obj is not iterable HOT 2
- Warning: noob incoming HOT 1
- Run each function after each image is loaded instead of waiting for every image to load and run all functions at once HOT 2
- Public site is broken HOT 1
- Possible bug with makeArray helper function in 5.0.0 HOT 2
- Is there a way to check if at least one image is loaded?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imagesloaded.