guiligan / jquery-preloader

3 stars 0 forks source link

Internet Explorer 8 #1

Open agoutsou opened 11 years ago

agoutsou commented 11 years ago

I think there is a problem with internet explorer 8 (maybe 7 too). It seems it fails to load more than one object given in load option..

guiligan commented 11 years ago

Hello @agoutsou, I will check the code for iE fixes ASAP. Thank you for your feedback!

karneaud commented 10 years ago

Same here...could it be that the images are being cached ? or maybe because the images are loading too fast

karneaud commented 10 years ago

found a fix on a stackoverflow post

lines 117 - 128 var im = $("").attr('id','img' + jQueryLoaderPluginMethods.uniqId()).css({ visibility: 'hidden' }).attr("src", url /+ '?time=' + (new Date()).getTime()/); // check if image cached if so move on else
if(im[0].complete || im[0].readyState === 4){ jQueryLoaderPluginSettings.callbackEach($jQueryLoaderPluginLastItem); jQueryLoaderPluginMethods.update(l[el][0]); delete l[el]; jQueryLoaderPluginMethods.show(l); break; } else im.load(function (e) {

                            jQueryLoaderPluginSettings.callbackEach($jQueryLoaderPluginLastItem);
                            jQueryLoaderPluginMethods.show(l);  });

Its a bit of a mess but it works