java - API for finding load time of a web page -


Is there an API to know the load time of a web page?

see

what other ways to know when to load Here is the simple javascript web page load time code (copy and paste at the top of the web page):

  script language = "javascript" & gt; PLT_DisplayFormat = "Your connection took %% s %% seconds to load this page."; PLT_BackColor = "yellowGreen"; PLT_Forecolor = "navy"; PLT_FontPix = "12"; PLT_DisplayElementID = "display_here"; & Lt; / Script & gt; & Lt; Script language = "javascript" src = "http://www.hashemian.com/js/PageLoadTime.js" & gt; & Lt; / Script & gt;   

Example: The following line is coded as:.

Your connection took 8.486 seconds to load this page.

Comments