How to tell when images have loaded with jQuery

Categories: Graphic design, jQuery - Tags: ,

When you build galleries, carousels or just work with images, it can be useful to know when images have loaded. For that, just use the following code:

$('#myImage').attr('src', 'image.jpg').load(function() {
    alert('Image Loaded');

Profile - Website


No comments yet.

Write a comment

You must be logged in to write a comment.

« »