thinker3197 / progressively

A JavaScript library to load images progressively 🌇
https://thinker3197.github.io/progressively
MIT License
698 stars 68 forks source link

IE10 compatibility #6

Open Mohsen-Khakbiz opened 7 years ago

Mohsen-Khakbiz commented 7 years ago

hey there. thanks for this great plugin. but something that I've noticed is it's not working on IE10. tested on your demo and it wasn't working.

thinker3197 commented 7 years ago

Hey @Mohsen-Khakbiz, IE unfortunately doesn't support css filter effects. Hence the blur effect won't work on any versions of IE. On a side note, I'll soon be working on releasing a next version of progressively, which will improve cross browser support for this. Thanks!

Mohsen-Khakbiz commented 7 years ago

thanks for your respond. may I ask when the next version will be released? it's a kind of urgent for us.

Regards

thinker3197 commented 7 years ago

Hmm if that's the case, give me a day. I'll do whatever I can.

Mohsen-Khakbiz commented 7 years ago

thanks so much. I really appreciate it

uncenteredDiv commented 7 years ago

Beside the fact that css filters are not supported in IE - the image swap doesn't work in IE <= 10. Only the small preview Images is loaded - in IE11 it works, but with no effect (IE Users don't deserve effects :D)

Are you covering that in the browser compatibility task? Is there any chance to get the script working in IE10 with a small change - because I would need that for a project.

UPDATE: Found an easy solution: the dataset function you using to get the data-attr is only supported by IE11

Change Line 79: img.src = el.dataset.progressive to img.src = el.getAttribute('data-progressive')