Two popular solutions are Pingdom Website Speed Test and GTmetrix, which are both beginner-friendly options. < % if (!Page.IsPostBack) { %> showFiltermenu (); < % } %> Solution 2 with localStorage you can save values like this: var firstTime = localStorage. By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. It's getting beyond a joke in here. It will run the function as soon as the webpage has been loaded. To track the user's activity as s/he navigates from page to page, a call must be made manually to trackPageView(). Else if flag exist compare it to current Date/Time - after refresh. On Load events fire during this process as well. is there anyway to find the ad loading time using javascript, How to calculate the page load time for angular JS application( single page application), script how to show loading time and memory usage web page in footer library jquery and angularjs, Pure JavaScript with real track of how much % page is loaded loading screen, how to execute a function after the page is loading is done in angularjs, Is there a way to check how long a website takes to load with javascript. To call it on the administration screens, use the admin_enqueue_scripts action hook. Wait for page to load using webdriverjs with mocha/chai. Duress at instant speed in response to Counterspell. Note:- Overriding the window.onload () function will disable any other function from attaching to it and window.onload () function sometimes respond after all the resources (images and so on) are loaded and not only the page. Using timings initiated with a