I havent worked with the preloader but I will take a shot at it. I assume the html for the preloader would have to be inside the images div as well as the images.
<script>
$("#divId").load(function(){
$(this).queryLoader2({
barColor: "#099",
backgroundColor: "#fff",
percentage: true,
barHeight: 1,
completeAnimation: "fade"
});
});
</script>