im using jquery .load to load in some content and images into a slide out div, but there seems is a delay in loading the images in, so i end up getting placeholder boxs for the images while the panel is sliding out. Is there a way that i can delay the .load function until the content is ready or preload the images so that there wouldnt be a delay in the first place ?
this is what im using to load in the images / activate the slide
google.setOnLoadCallback(function () {
$("#show-services").click(function (e) {
e.preventDefault;
$(".content").load("index.html .get", function () {
$('.hide-content').click(function () {
$(".content").hide("slide", {
direction: "right"
}, 1000);
});
});
return false;
});
});