jQuery Log Page Load Time

By Sam Deering

Simple jQuery code snippet to log the time it takes for a page to load. With large pages or pages containing inline JavaScript, it is a good idea to monitor how long pages take to load. The code below is different from waiting until onload is fired and only measures page load time.



Learn Coding Online
Learn Web Development

Start learning web development and design for free with SitePoint Premium!

Get the latest in JavaScript, once a week, for free.