I am trying to load an image using the img data-src
tag instead of just the img src
. I have created two simple JSFiddle's although only the one with the img src
works. These are here:
img data-src example THIS DOESN'T WORK AND I WANT IT TO
img src example THIS ONE DOES WORK.
Can somebody please fill in the blanks as to why the img data-src one doesn't work please? I am confused by this and been searching for an answer for hours.