Has the image loaded?


/ Published in: jQuery
Save to your folder(s)

Used this on a project to determine whether images were loaded or not. In an image carousel, for example, you could test the next/clicked image before advancing the slide, and if 'loaded' wasn't 'true', you could add a "loading" class and attach a new .load handler to remove the class and advance when the image finished loading.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.