JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
This is the proper way to do it.

JavaScript

$.ajax({
        url: 'http://google.com',
        method: 'GET',
        start_time: new Date().getTime(),
        complete: function(data) {
            alert('This request took '+(new Date().getTime() - this.start_time)+' ms');
        }
    });