views:

65

answers:

1

I have jQuery code that loads images with jQuery load method. It works perfectly in all other browsers, except in IE. I have about 10 images, but IE only loads few of those images and then stops loading. What could be causing this?

$(".image-container").each(function() { 

    ... some code here ...

    var img = $("img", this);

    $(img).load(function () {

        ... some code here ...

    });
});
A: 

I had an issue with I.E., where all browsers would load my images, except I.E.

I'm giving you this answer because while my issue wasn't with javascript, it had to do with images loading everywhere but not in I.E.

Turns out it was because some of the images were jpegs made by photoshop, that used a CYMK colorspace which IE don't support.

I used imagemagick to check the format (identify -verbose) and convert the images ( in my case something like convert -profile CoatedFOGRA27.icc -profile sRGB.icm ...

Again, I'm not sure this applies to your problem, but it doesn't hurt to check the format of your images. I hope it's useful.

David V.
I found out that those images were already loaded, so load event didnt catch those. So I had to add ready event to catch those already laoded images
newbie