Yeah I forgot to include that part... sorry about that. That's right here
getImage: function(href2view) { $("#loadingAnimation").css({position: 'absolute', top: '50%', left: '50%'}).show(); var imageLoader = new Image(); $(imageLoader).load(function() { $("#galleryImage").attr('src', this.src); resizeContainer(this); }); $(imageLoader).attr('src', href2view); galleryObj.currentImage = imageLoader; galleryObj.currentTitle = galleryObj.images [galleryObj.getActiveImageIndex()].title; return $(this.currentImage); }, However, I believe I've fixed the problem. Although to be honest I'm not exactly sure what it was that I changed that worked. Quirky. Ah well thanks anyway.