ApoorvSaxena/lozad.js

Not working in IE 11

simpledevwp opened this issue · 8 comments

Our sites images using lozad don't load in IE 11. I think it works before but not anymore. I checked the demo site, https://apoorv.pro/lozad.js/demo/ and confirmed that it is really not working now.

Error in JavaScript console: Object doesn't support property or method 'assign'

e = Object.assign({}, c, t)

can i please work on this?

fixed by #207, README and Demo page has been updated

@webdevhobby @gardavis can you please help in verifying the same in IE browser?

What is the best way to handle this via webpack and ES6 syntax? Corejs didn't transform the object assign statement in my javascripts ...

hn1 commented

"Adding the polyfills for Object.assign and IntersectionObserver do get Lozad to work fine in IE11."
Unfortunately it does not. Its all over the place - No Polyfill will make this work!
Any ideas. It used to work perfectly upt o version 1.7 - What happened!
Sometimes progress is no good!

I need some time to get this, but these polyfills doesn't seem to polyfill the append function ( it's documentated here: #221 )