jQuery: Image load script
Experimenting with the load event, want to make sure an image is cached before applying that URL to another element.
HTML
<img class="img1" src="http://share.smarthead.ru/persistent/lubyatovo/frontend/img/images/products/product-new.png" alt="">
JavaScript
$('.img1').load(function() {
// image is loaded, do something with the url
alert('loaded');
});