Here's a simple javascript code that works on all browsers:
var myImage = new Image();
myImage.onload = function() {
var image_width = myImage.width;
var image_height = myImage.height;
$('#pictureEl').html('
');
};
myImage.src = myUrl;
A jQuery snippet must be doing the same thing, under the hood.