JSFiddle - React, Tailwind, and code Playground
by Rob Janssen
JavaScript
var imgSrc = "http://httpstat.us/401/foo.jpf";
$("<img/>").attr("src", imgSrc).load(function() {
console.log(this.width, this.height);
});
by Rob Janssen
var imgSrc = "http://httpstat.us/401/foo.jpf";
$("<img/>").attr("src", imgSrc).load(function() {
console.log(this.width, this.height);
});