JSFiddle - React, Tailwind, and code Playground

by wirey00

HTML

<img style="display:none;"
src="http://example.com/test.png"
/>

JavaScript

$('img').load(function(){
    console.log('success');  
}).error(function(){
  console.log('error');  
});