I need a JavaScript code that looks for all img
tags with class load
and enter the onload="loader(this)"
function on them.
The idea here is that all images with class load
are given the function of onload
that will change the value of src
to the value of the image.
It would work as a lazy load plugin, but without APIs.
If there is already something like this, let me know the link because I could not find something like this.