David Walsh 2007-2023. ", because a lot of extension stores consider that privacy violation. . < % if (!Page.IsPostBack) { %> showFiltermenu (); < % } %> Solution 2 with localStorage you can save values like this: var firstTime = localStorage. the purpose of answering questions, errors, examples in the programming process. Thanks for contributing an answer to Software Quality Assurance & Testing Stack Exchange! load: the external resources are loaded, hence the styles are applied, the sizes of the images are known and so on. HubSpot CMS for Developers II Exam CertificationAre you looking for the HubSpot CMS for Developers II Exam Answers sheet?Get HubSpot CMS for Developers II Exam Certification Answers (Updated) and Become a HubSpot CMS for Developers II Exam Certified Expert. By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. Alert "Image is loaded" immediately after @GilEpshtain maybe you should post browser, OS and their versions in order to reproduce the issue with, You could set a cookie on first load or a parameter at the window storage. That both are the same makes sense since domContentLoadedEventEnd and domComplete are the same. Instead, use the Date object to create a timestamp when you page began loading, and calculate the difference to the time when the page has been fully loaded: The answer mentioned by @HaNdTriX is a great, but we are not sure if DOM is completely loaded in the below code: This works perfectly when used with onload as: Note: loadTime is in milliseconds, you can divide by 1000 to get seconds as mentioned by @nycynik. When the browser processes an HTML-document and comes across a