Bu konuda yardımcı olacak waitForImages adlı jQuery eklenti kullanabilirsin ...
$("#box").css("background-image", "url(image.php)").waitForImages({
waitForAll: true,
finished: function() {
//Background image has loaded.
}
});
Aksi takdirde, el ile yapmak ...
var image = 'image.php',
img = $('
');
img.bind('load', function() {
//Background image has loaded.
});
img.attr('src', image);
$('#box').css('background-image', 'url(' + image + ')');