Skip to content

Instantly share code, notes, and snippets.

@wholypantalones
Created May 9, 2012 20:48
Show Gist options
  • Select an option

  • Save wholypantalones/2648709 to your computer and use it in GitHub Desktop.

Select an option

Save wholypantalones/2648709 to your computer and use it in GitHub Desktop.
Determine script loading time/completion
//top of script
var startTime = (new Date()).getTime();
//complete function or bottom
var endTime = (new Date()).getTime();
var millisecondsLoading = endTime - startTime;
$("#timer").append("Loaded in: " + millisecondsLoading + " seconds");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment