Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callback when src changes the first time #41

Open
microcipcip opened this issue Jan 23, 2014 · 2 comments
Open

Callback when src changes the first time #41

microcipcip opened this issue Jan 23, 2014 · 2 comments

Comments

@microcipcip
Copy link

Is there a callback that fires when the src has changed for the first time? I have a image wrapped with a span, I use this wrapper to display a preloader gif, however I don't know how I should remove the animation once that the full resolution image has finished loading.

Example:

<span class="preloader"><img src="40x40.jpg" data-image-400="400x400.jpg" data-image-800="800x800.jpg" alt="#" /><span>
@ryanve
Copy link
Owner

ryanve commented Jan 25, 2014

We don't have a specific event for it yet but this sort of feature is on the roadmap for the future—see #15 and other open issues. For now does running your callback immediately after response.js runs help?

@microcipcip
Copy link
Author

I will check that code, thanks for your help!

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

No branches or pull requests

2 participants