I'm using $.ajax()
to load the content from a file on the same server and I want to calculate how long time it takes for the content to load. For example, the visitor clicks on a link and a timer starts. When the page have loaded completely, the timer stops and return the results.
How can I accomplish this?