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

Today Walkin 14th-Sept

Network Error and Timeout on Authorize.net JS

Spring Elasticsearch Operations