They'll be far more accurate. Making statements based on opinion; back them up with references or personal experience. Was Galileo expecting to see so many stars? What are some tools or methods I can purchase to trace a water leak? Dealing with hard questions during a software developer interview. Johnson recognized a gap in conversa. I forgot the ! If it's a standard app load, waiting on the page complete is probably best as there are no after actions. Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide. Also, trackPageView() is not sufficient to log page load time. Your query can be solved easily by this helpful link: OnLoad W3School If you want loading status: You can do that using simple Javascript if (document.readyState == "complete") { alert ("Your page is loaded"); } Return Value: A String, representing the status of the current document. Why was the nose gear of Concorde located so far aft? Learn more about Stack Overflow the company, and our products. If you need more times check out the window.performance object: Don't ever use the setInterval or setTimeout functions for time measuring! Connect and share knowledge within a single location that is structured and easy to search. How to Auto-refresh page once only after the first load Using Javascript Using window.onload: //add this js script into the web page, //you want reload once after first load window.onload = function() { //considering there aren't any hashes in the urls already if(!window.location.hash) { //setting window location How do I remove a property from a JavaScript object? Jordan's line about intimate parties in The Great Gatsby? How does a fan in a turbofan engine suck air in? How to Display Spinner on the Screen till the data from the API loads using Angular 8 ? The flag can be current Date/Time. Critical issues have been reported with the following SDK versions: com.google.android.gms:play-services-safetynet:17.0.0, Flutter Dart - get localized country name from country code, navigatorState is null when using pushNamed Navigation onGenerateRoutes of GetMaterialPage, Android Sdk manager not found- Flutter doctor error, Flutter Laravel Push Notification without using any third party like(firebase,onesignal..etc), How to change the color of ElevatedButton when entering text in TextField, while clicking local push notification how to navigate and reload a page in flutter, JQuery data table with multiple header rows and fixed column, how to add style in table which is dynamically created, AJAX Jquery Call returning 401 (unauthorized) - API Call. You can just wait on the general page load, but it's not guaranteed to be the final loaded element on the page. Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide, ditto. Super easy and fast! You could create a function with this behavior and attach a callback function that does whatever you need. Browse other questions tagged, Start here for a quick overview of the site, Detailed answers to any questions you might have, Discuss the workings and policies of this site. By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. The onload event can be used to check the visitor's browser type and browser version, and load the proper version of the web page based on the information. But it doesnt wait for the image to load. While using W3Schools, you agree to have read and accepted our,
, ,