Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.37 KB

README.md

File metadata and controls

30 lines (21 loc) · 1.37 KB

PerformJS

A small JavaScript library that wraps around the Navigation Timing API providing information on user experience.

###Syntax:
You can view the stats by printing them to the console or as a graph in a web page.

perform.stats(); //Print to the browser console

perform.stats(true); //Appends a graph to the document body element that compares the stats in a timeline format

###Currently measuring:

  • Page Load Time
  • Network Latency
  • Connection Time
  • DNS Latency
  • Document Load TIme

###TODO:

  1. Subtract the time the script loads from the stats so that we can get an accurate measure of performance.
  2. Continue tweaking the appearance of the graph displayed in the browser so that it can better represent how different stats compare to page load time.

###Learning Resources