aFarkas / lazysizes

High performance and SEO friendly lazy loader for images (responsive and normal), iframes and more, that detects any visibility changes triggered through user interaction, CSS or JavaScript without configuration.
MIT License
17.54k stars 1.73k forks source link

not working on iPhone 4 #268

Closed astraussondigo closed 8 years ago

astraussondigo commented 8 years ago

Lazysizes is not working on iPhone 4 (simulator and native). Even with a polyfill like picturefill. Neither my code nor the lazysizes demo page is working http://afarkas.github.io/lazysizes/#examples On iPhone 4s and later everything works fine.

lazysizes_on_iphone4

aFarkas commented 8 years ago

What iOS version is this, what does the console say?

aFarkas commented 8 years ago

And how many users are using this iOS version anyway?

astraussondigo commented 8 years ago

It's iOS 7.1.2. iPhone4 can't update to a higher version.

5.4 % are still using iOS 7.1 and 1.7 % iOS 7.0

http://hwstats.unity3d.com/mobile/os-ios.html

So every 14th person (with iOS) will see no pictures.

Console doesn't say anything.

rorentz commented 8 years ago

Is there any chance, that this could be fixed? Lots of our clients use lower iOS versions. For example older iPads use that version a lot...

aFarkas commented 8 years ago

I have just tested the current version (in master) with iOS 7.0 and it works.

Can you use the newest version of lazysizes? Otherwise I can not replicate your issue.

z5fc549cabf7ab712bb2

ios7

rorentz commented 8 years ago

You are using an iPhone 5s simulator, thats working correctly, iPhone 4s, too. But the iPhone 4 with a maximum version of iOS of 7 is not working.

aFarkas commented 8 years ago

But I tested with iOS7.0 and iOS7.1 and there shouldn't be a difference with different hardware. Additionally I don't have access to iPhone 4.

rorentz commented 8 years ago

Obviously there is a difference :-( I do not know how to get an older IOS and iphone4 into the simulator. Than i could debug the beast.

rorentz commented 8 years ago

Okay, it works now, CRAZY Stuff. Thanks for your help.

aFarkas commented 8 years ago

Okay, it works now, CRAZY Stuff.

Maybe because of the new version. I released yesterday.