JSFiddle - React, Tailwind, and code Playground
JavaScript
var img = new Image();
img.onload = function () {
var w = img.width;
var h = img.height;
alert("NEW IMAGE width : "+ w + " NEW IMAGE height: "+h);
}
img.src = "http://pierre.chachatelier.fr/programmation/images/mozodojo-original-image.jpg";
$(img).appendTo('body');