JSFiddle - React, Tailwind, and code Playground
HTML
<a href="http://files.mattlunn.me.uk/permanent/fish_images/1.jpg" id="someId">Click</a>
JavaScript
$('#someId').bind('click', function (event) {
var image = new Image();
image.onload = function () {
var height = this.height;
var width = this.width;
alert(height + " | " + width);
}
image.src = this.href;
event.preventDefault();
});