ApoorvSaxena / ApoorvSaxena/lozad.js

Picture img Insertion helpful outside IE

Aperta
#130 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
7.5k
Fork
435
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

From my experience using lozad so far I've needed to remove the isIE check when lazy loading pictures as chrome expects me to style the picture based off of a fallback img tag as opposed to styling the picture tag. Are others experiencing this / would it make sense to remove the isIE check before fallback img insertion? I made the change in my fork and also used hasAttribute in the attribute checks.

https://github.com/TiKevin83/lozad.js/commit/85044c802e39b9a7bed80004d791dfab778ef1eb

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.