Skip to content

hichilon/performJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Small Navigation Timing API wrapper.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published