<img src="w3javascript.gif" onload="loadImage()" width="100" height="132"> <script> function loadImage() { alert("Image is loaded"); } </script>
References
https://www.w3schools.com/jsref/event_onload.asp
https://stackoverflow.com/questions/1977871/check-if-an-image-is-loaded-no-errors-with-jquery