JSFiddle - React, Tailwind, and code Playground

HTML

<img src="http://a2.twimg.com/profile_images/828359055/Picture_19_bigger_bigger_normal.png" alt="" />
<div style="margin-top:10px">
<input type="button" id="myButton" value="click" />
</div>

JavaScript

function onClick(){
    var pathToPicture='http://a2.twimg.com/profile_images/828359055/Picture_19_bigger_bigger_normal.png';//twitter picture
    $('<img/>').load(function(){
        var elem=$(this);
        alert(this.width+'px, jQuery:'+elem.width()+'px, '+elem.css('width'));
    }).attr({src:pathToPicture});
}

$('#myButton').unbind('click').click(onClick);