JSFiddle - React, Tailwind, and code Playground

JavaScript

var img = new Image(),
    url = 'http://sci8.com/wp-content/uploads/2014/10/test-all-the-things.jpg',
    checkEntry = function() {
    var entry = window.performance.getEntriesByName( url )[0];
    
    if ( entry === undefined) {
        return;   
    }
    
    console.log( entry.responseStart - entry.requestStart, entry );
};

img.onload = function() { setTimeout( checkEntry, 0 ); };
img.src = url;