I've a simple php page... a grid of perhaps 60 small images. I'm calling the PHP page via an AJAX call. On first load not all of the images appear, so invariably I have to run it a second time to load the rest of the images. I can right click on the icon place holder and click 'open in new tab' to view the image, but that's not really what I want!
Is there a way to make the AJAX call wait until the images have all loaded?
My current AJAX call is:
$.ajax(
{
type: "POST",
url: "ajax.php",
data: (
{
"type": "compareAssessmentsPies",
"yearGroup": yearGroup,
"subject": subject
}),
success: function(response)
{
$("#reply").html(response);
}
});
Thanks for any hints.