can you help me?
How can I check if img is fully loaded before set the src with this function below?
<img class="loadlater" data-src="path/to/image.ext"/>
$(document).ready(function(){
$(".loadlater").each(function(index, element){
$(element).attr("src", $(element).attr("data-src"));
});
});
Thank you