lazyloading background images

i have been trying to load images with v-src instead of data-src but am failing again and again

if the below snippet can be modified to load v-src instead of data-src would be great

void 0 !== ytimg[j].dataset.src ? ((s = document.createElement("img")).src = ytimg[j].dataset.src

not working when i do this, i am not a programmer neither i know much about JS, a little contribution from your part would be helpful

void 0 !== ytimg[j].getAttribute('v-ѕrc') ? ((s = document.createElement("img")).src = ytimg[j].setAttribute('ѕrc')

thank you!



from Recent Questions - Stack Overflow https://ift.tt/3dQxUod
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept