Ok I nabbed method C for preloading images from this question best way to preload multiple images I'm trying to implement it into a get Json array
$.getJSON('/pageCall.php',{chapters:chapterNumber}, function(data)
{
chapter=data;
totalPages = chapter.length;
var options = '';
$.each(chapter, function(index, array) {
images[index] = new Image();
images[index].src = array['imageLocation'];
});
};
but when I try and call the images using the following method nothing appears
function callImage(ImageNo)
{
$('#mangaImage').attr('src', images[ImageNo]);
}